In the universe of npm, there are a lot of packages to choose from, so knowing which one to choose from can be very difficult. In This article, we will first look at the categories of libraries which are server-side-rendering, animation,state-management, and General Utilities and we will then look at the packages under these categories.
1.General Utilities
The npm packages in this category are just packages that are helpful so few specific tasks and you may eventually need them. The packages in this include:
- moment.js -- very good for working with dates
- Axios -- good for handling async tasks
- React-hot-toast, React-toastify — handling small notifications and toasts
- react-icons," @mui"/icons-material — For icons
- react-paginate — For pagination
- React-share — Share things Socially
- React-slick, react-responsive-carousel — For Carousel
- clsx — For conditional classes
- react-intersection-observer — For intersection
- react-dropzone — For file upload and drag and drop
2. Animation
Bringing animation to your site just makes it more fun and pleasant for your viewers. That being said, the packages under animation include:
- GSAP
- Framer motion
- React-spring
- Anime.js
3. State Management
Sometimes the data in your React.js application can be very difficult to manage effectively and the React content API isn't just good enough. That being said, the packages under state management include:
- Redux
- Redux Toolkit -- my personal favourite
- Recoil
- Mobx
- React Context -- not recommended for big projects
4. server-side rendering
if you are building a highly optimized robust website you will need an SSR framework because they make routing easier, they fetch data on the server and return to the component, they optimize images so it doesn't bottleneck performance, and much more. That being said, the packages under server-side rendering include:
- Next.js
- Gatsby.js -- for only SSG (static site generation)
- Remix
Conclusion
if you enjoyed please do not forget to drop a follow and a reaction and follow me. IF YOU LIKED THE POST, THEN YOU CAN BUY ME MY FIRST COFFEE EVER, THANKS IN ADVANCE.
Top comments (3)
Would like to mention a few:
Please suggest if there are any better alternatives!
Happy Coding 🧡
but how will you compare it to the others( GSAP and Framer motion)?
Recoil has a much better alternative: Jotai