React Test
React Test
Boilerplate
Requirements
API details( use Fetch)
Home
it contains links to other routes
login,signup,cart and dashboard routes
Signup
A user should be able to signup from here
data will save in json server
Login
A user should be able to login from here
You need to complete it with by using the following api(json api)
You need to maintain the authentication state
when the user clicks on submit, the button should be disabled
once logged in, a user is redirected to /dashboard route
Dashboard
all the filters for pagination, sorting, , and products will be present here
Once logged in, a user sees the this page
you should have a Logout button
once clicking on it, you should be logged out
There are two buttons Sort high to low and Sort low to high in the above
div(optional)
if low to high is the order, then the button Sort low to high should be
disabled(optional)
if high to low is the order, then the button Sort high to low should be
disabled(optional)
Cart Page