Skip to main content

Login

This component renders the Login page for React Bricks Admin Dashboard.

It needs no props, but it must be wrapped by the Admin component to receive the needed context.

The route where this component is shown has to be specified in ReactBricks's configuration parameter loginPath.

Usage example

import React from 'react'
import { Admin, Login } from 'react-bricks'

const LoginPage = () => {
return (
<Admin isLogin>
<Login />
</Admin>
)
}

export default LoginPage