In order to use a Supabase client, you need to provide it via the Context API. This may be done with the help of the Provider export.

import { createClient } from '@supabase/supabase-js'
import { Provider } from 'react-supabase'
const client = createClient('', 'public-anon-key')
const App = () => (
<Provider value={client}>
<YourRoutes />

All examples and code snippets from now on assume that they are wrapped in a Provider.