This small app let me practiced with
- react hook: useState
- react-router-dom: Router, NavLink, Routes, and Route
- Re-useable component: Tab
src:
- component:
- Tab
- Header
- Page:
- About
- Features
- Home
- App.js
- index.js
- Routes.js
-> App.js
-> Header.js (Render each tabs with its NavLink)
-> Tab.js
-> Routes
(Switch looks through its children <Route> and render the first one that matches the current url )
->Switch
(page will be rendered based on url match)
-> Route
- npm install
- npm run
- npm build (For production)