These are a collection of code snippets I've used in the past and saved. Some are npm packages, which include set up instructions. Others are anything from random CSS snippets to Node.js scripts.
With SWR, components will get a stream of data updates constantly and automatically. And the UI will be always fast and reactive.
To implement drag and drop in a React functional component using the react-beautiful-dnd library.
A neat custom React Hook that shows how to use local storage in React to store state.
20 Simple JavaScript Coding Snippets You Should Know
How to add authentication to a Next.js app.
How to create a newsletter signup form with React and Formik