React login within app

Hello ,
Im new to Auth0 , I want to build a react app with auth0.
it should not redirect to auth0 portal. the username and password should be taken in react app and on click it should authorize with auth0. how can I achieve this?

That approach is not recommended, but if you are set to use such flow what could possibly be relevant is what’s available at (