A example login screen for adminlte-2-react with formik and yup https://github.com/sd1337/adminlte-2-react
Require Formik and Yup: https://github.com/jaredpalmer/formik https://github.com/jquense/yup
npm install formik
or
yarn add formik
and
npm install yup
or
yarn add yup
In the render of my Login class component I do something like bellow:
...
render() {
if(this.state.refererURL){
console.log(this.state.refererURL);
return ;
}
...
where this.state.refererURL = "/dashboard"
but I get a rendered blank page :( Any ideea please ?