Kasa is a vacation renting web application. This project have 3 pages : Home, Building and Error. When a user select a building on the home page, that redirect him to the building page with the information of the building he clicked on.
- Integrating Front-end Mockup
- Create a good React project structure with pages, components and layout
- Integrating data from JSON file
- Navigating with React-Router
- HTML
- CSS
- JS
- ReactJS
- React-Router
Kasa/
│
├─ src
├─ components # components folder
├─ pages # pages folder
├─ App.js # a place which you can look all the components
├─ index.js # central point of the project
├─ router.js # the BrowserRouter of the project
├─ style.css # css of the project
- You need to install the dependencies using :
npm install
- The start with :
npm start
- Displaying all the buildings
- Display building on the building page by the id
- Getting the datas from JSON file
- Managing the routes with the router
- Displaying errors if the id or the page don't exist
This is a easy but full projects in ReactJS using the state, the lifecycle and everything inside is designed in functionnal components and not in class components. Functionnal components are easier to maintain.