React JS Machine Test
React JS Machine Test
Total 5 pages
1) Home page
2) About page
3) Posts
4) Post details
5) Contact
All page’s header contains the navigation to Home, About, Posts, Contact
Home
From the Api take each user's name, email and phone. When clicking on the user then
show the particular user details in a modal.
About
About page you can make with your own creativity
Posts
Post page you have to list all posts which you can fetch from the following Api
https://jsonplaceholder.typicode.com/posts
From the Api you can take the title and body's first 50 characters to make the list and when
clicking on each post will navigate to the post details page.
and particular post's comment you will get from the following Api
https://jsonplaceholder.typicode.com/posts/{id}/comments
Contact Page
make a contact page with following form fields
first name, last name, email, phone number, gender, date of birth, state, city, pincode and
address.
here first name, last name, email, phone number and pin code fields like input
state field should be select box (for now just add any 5 state)
And submit with validation, if validation is successful then log all field’s values in the console.
Validation rules