Closed jmcbee closed 5 years ago
JSX element type 'ReactNode' is not a constructor function for JSX elements. Type 'undefined' is not assignable to type 'Element | null'.
And the code:
import {Provider} from 'react-redux' import {Auth0Provider} from 'use-auth0-hooks' // ... return ( <Auth0Provider domain={process.env.AUTH0_DOMAIN as string} clientId={process.env.AUTH0_CLIENTID as string} redirectUri={process.env.AUTH0_REDIRECTURI as string} > <Provider store={store}> {element} </Provider> </Auth0Provider> )
Thanks for reporting! Fixed in v0.6.0
Can you also fix the onRedirecting type?
onRedirecting
Added in v0.7.0
And the code: