Sup this is Franz and here i made u guys sum notes on reduxjs/toolkit and next.js
You dont have to follow but yeh i recommend it
Flow:
- go to store folder then,
- check index.js then,
- check counterSlice.js then,
- check counterActions.js then,
- go to pages folder and check index.js there,
- oh and check the _app.js
I just talked about routing and the file structure of next.js since im getting sleepy but yeh just check the folders and files in the pages directory, i placed some pretty useful notes there.
Oh and check the hello.js file in the api folder in the pages folder
Here some other stuff to research about next.js:
-
Page Prerender and Data Fetching
- getStaticProps
- getStaticProps w/getStaticPaths
- getServerSideProps
-
API Routing
-
New Features of Next 12