Dependency injection in React

This page summarizes the projects mentioned and recommended in the original post on dev.to

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.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • node-fetch

    A light-weight module that brings the Fetch API to Node.js

  • Now, in a Node environment, we can use node-fetch in conjunction with our ping function, like so:

  • storybook

    Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.

  • Testing is not the only such environment. Platforms like Storybook streamline documentation and can do without using many of our hooks and business logic.

  • 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
  • react-query

    Discontinued 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]

  • React Query is a prime example of this. We can use the same provider in both development and testing and feed it to different clients within each environment.

  • msw

    Seamless REST/GraphQL API mocking library for browser and Node.js.

  • Depending on the context, dependency injection might not be the right tool for the job. Data-fetching hooks, for instance, are better mocked using an interceptor (like MSW) instead of injecting hooks all over your test code, and outright mocking functions remains an advanced and cumbersome tool for bigger problems.

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

  • Leveraging the `key` prop to re-render Storybook stories

    3 projects | dev.to | 19 May 2022
  • Testing Next.js pages

    5 projects | dev.to | 26 May 2021
  • React beginner: I have made a basic weather app in React that works, but upon fetching new data, I get a CORS policy error. I did some researching online but none of those suggestions have fixed the issue. Can you please let me know how to modify my fetch request to fix this? CodePen included

    3 projects | /r/reactjs | 6 Apr 2021
  • Integrating reCAPTCHA with Next.js

    4 projects | dev.to | 17 Feb 2021
  • Xior.js: The Modern Axios

    1 project | news.ycombinator.com | 9 May 2024