sandbox-react/auth0-blog/app/components/signup-button.jsx

21 lines
388 B
JavaScript

import React from 'react';
import { useAuth0 } from '@auth0/auth0-react';
const SignupButton = () => {
const { loginWithRedirect } = useAuth0();
return (
<button
className="btn btn-primary btn-block"
onClick={() =>
loginWithRedirect({
screen_hint: 'signup',
})
}
>
Sign Up
</button>
);
};
export default SignupButton;