1.ifelse 2.ternary operator 3.shor circuit/logical oprator
1.default exports 2.Named Exports
1.map 2.filter 3.foreach 4.reduce
- Composition Components
- Nested Components
(Normal JavaScript Utility Functions)
- useState() - Local state variable which is accessible in that component only.
- useEffect
- Without dependency array, the useEffect will re-render on every load.
- With dependency array, the useEffect just calls initially.
- Called Swiggy API using Axios.
For building this, I have used the filter method and useState for storing filtered data.
- createBrowserRouter is used for building the router system.
- Outlet is used for child routes.
- For dynamic routing, use useParams.