Is there a demo of useEffect and axios fetch?

Hello, is there a demo using react useEffect hook and axios fetch in Plasmic?

Are you using codegen?

If so, a basic example would look something like this (similar for axios):

function ProfileCard() {
  const [profile, setProfile] = useState();
  useEffect(() => {
    fetch(...).then(res => res.json()).then(res => setProfile(res))
  }, []);
  return (
    profile
    ? <PlasmicProfileCard
        name={profile.name}
        picture={profile.picture}
      />
    : null
  );
}