How can I prevent this in my large scale react app ?

This page summarizes the projects mentioned and recommended in the original post on /r/reactjs

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • TanStack Query

    πŸ€– Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

  • This looks like a very large component. Have your state as close as possible to where it is being used. Just split it up into multiple components where each component handles one thing. Also, for any state that handles data from the server, use react-query. These 2 things can get you pretty far.

  • react-hook-form

    πŸ“‹ React Hooks for form state management and validation (Web + React Native)

  • https://react-hook-form.com can help a bit. It’s literally one of the best tools for pages with lots of inputs.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • zustand

    🐻 Bear necessities for state management in React

  • could be a non-issue, could be the case of not having proper state management. in case of the latter i'd try something like zustand for react (https://github.com/pmndrs/zustand)

  • react-easy-state

    Simple React state management. Made with ❀️ and ES6 Proxies.

  • If you want to try something a bit different with regards to state management, you can try: https://github.com/RisingStack/react-easy-state

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts