- React Component is the “default export”
- *** Use Webpack’s hot module replacement -> Support default
- Navigate between Pages
- Not use
- Use from ‘next/link’ -> use client-side navigation -> not send request to server
- ‘/pages’, ‘/static’ –> special folder -> not change name
- Layout : 3 ways
- Render child component
- Layout as a higher component
- Page content as prop
- Component: use as Header / Layout
… for styling / page layout, …
…can import components from NPM modules and use them.
Leave a comment