Skip to content
Menu
Rohit Naik Kundaikar
  • Home
  • Contact
Rohit Naik Kundaikar

Category: ReactJS

React Best Practice: Part 2

Posted on January 25, 2024January 25, 2024 by Rohit Naik Kundaikar

Function Recreation: Utilizing the useCallback hook is crucial as it allows you to memorize a function. Whenever a component is re-rendered, all functions within the component are unnecessarily recreated, adversely impacting app performance. To mitigate this, a simple solution is to enclose the function with the useCallback hook, preventing recreation when no dependencies have changed….

+
Best Practice, ReactJS

React Best Practices: Part 1

Posted on January 21, 2024January 25, 2024 by Rohit Naik Kundaikar

Custom Hooks: Custom hooks are a powerful mechanism in React to encapsulate and reuse logic. By creating separate functions as custom hooks, you can modularize your code, making it more readable and maintainable. These hooks can encapsulate complex logic or API calls, promoting code organization and reusability. Example: https://github.com/thatsrohitnaik/my-react-boiler-code/blob/main/src/hook/useApp.ts Cache with SWR: The SWR (Stale…

+
Best Practice, ReactJS, Vite

Redux Toolkit

Posted on September 24, 2021September 24, 2021 by Rohit Naik Kundaikar

First thoughts, not as simple as MobX, but far, far better than using Redux. Yes, Redux Toolkit is much simpler to use than Redux, it overcomes the common issues of using Redux such as. Configuring the redux store is much complicated and often leads to errors. You need to use a lot of add-on libraries…

+
Javascript, ReactJS, Redux Toolkit

React MobX Store

Posted on July 16, 2021July 16, 2021 by Rohit Naik Kundaikar

MobX is the best and most easy way of implementing a store in react project, it is so simple that you will never use redux in your life again. Unless you are told to do so at gunpoint. There are two ways of implementing MobX one using decorators and the other without it. However MobX…

+
MobX, ReactJS

React Context

Posted on July 14, 2021 by Rohit Naik Kundaikar

Context provides a way to pass data from the root component to any child components without having to pass it manually as a relay from component to component. Thus solving the prop drilling issue, also context comes in handy while passing a store across the application. For example, If you are using a third-party store…

+
Context, ReactJS

How to add MobX state management in React project

Posted on September 25, 2020September 26, 2020 by Rohit Naik Kundaikar

In this article you will get to know how your life as React developer could be easier if you simply switch to MobX from Redux. With the introduction of React-Context and increasing use of MobX in react application, I really hope that one day Redux bubble bursts. All of that being said, let’s begin with…

+
MobX, ReactJS

How To Setup React Project With Babel and Webpack

Posted on September 23, 2020September 26, 2020 by Rohit Naik Kundaikar

What is Webpack ? Webpack is a tool that bundles your modern day JavaScript application with multiple file imports like in case of React project into a single or in some cases multiple JS bundle files. for example Let’s start with the setup, first you will have to create node project. Open your package.json file…

+
ReactJS, Webpack

Recent Posts

  • Typescript Guide – Part 1
  • Vite Micro Frontend
  • React Best Practice: Part 2
  • React Best Practices: Part 1
  • Redux Toolkit

Recent Comments

    Archives

    • August 2024
    • January 2024
    • September 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020

    Categories

    • Angular
    • API
    • Best Practice
    • Compiler
    • Context
    • DevOps
    • Docker
    • FAANG
    • Forms
    • GraphQL
    • Java
    • Javascript
    • Machine Learning
    • MobX
    • Python
    • ReactJS
    • Redux Toolkit
    • Spring Boot
    • Typescript
    • Uncategorized
    • Vite
    • Webpack
    ©2025 Rohit Naik Kundaikar | Powered by WordPress & Superb Themes