NextJs - Caching, serverComponent, useReducer, revalidate.
This short video underlines some factors a react developer should consider to get the benefits of using nextjs which is a full-stack web framework built on reactJs. You should know reactjs or has already written some code in reactjs to grasp key terms I am pointing out in this video. 0. Learn reactJS 1. Server component should take precedence 2. Do not abuse useState. use useReducer instead 3. use Dispatch over setState 4. Window.location over useRouter 5. Mutated variable on the server side 6. Do not cache dynamic data, cache static one 7. Refactor, solve more with less code
This short video underlines some factors a react developer should consider to get the benefits of using nextjs which is a full-stack web framework built on reactJs. You should know reactjs or has already written some code in reactjs to grasp key terms I am pointing out in this video. 0. Learn reactJS 1. Server component should take precedence 2. Do not abuse useState. use useReducer instead 3. use Dispatch over setState 4. Window.location over useRouter 5. Mutated variable on the server side 6. Do not cache dynamic data, cache static one 7. Refactor, solve more with less code