Hi,
I followed the Quick start tutorial (https://docs.onflow.org/flow-js-sdk/flow-app-quickstart). I end up getting an error: This component must be used inside a component. (see image below).
It seems that the problem is somewhere in the current-user.js file at this code block:
export function useCurrentUser() {
const currentUser = useRecoilValue($currentUser)
return {
…currentUser,
logOut: fcl.unauthenticate,
logIn: fcl.logIn,
signUp: fcl.signUp,
}
}
Is anyone able to help?