Redirecting Users with State Parameters

I’m sorry I’m a little lost. Can you walk us through how we can actually do this in auth0-react-js ?

can I just set redirect_uri: `{allowed_callback_url}?betacode=${somenumber}` when using loginWithRedirect ???

In my use case, the only dynamic part of my redirect uri is the query parameters. Can this work?