mock-requests
visx
mock-requests | visx | |
---|---|---|
4 | 52 | |
35 | 18,868 | |
- | 1.3% | |
5.4 | 7.1 | |
about 1 year ago | 7 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
mock-requests
-
What libraries do you use to mock API calls in a React app?
I wrote mock-requests before MSW came out. It was, to my knowledge, the first dev-friendly mocking library out there that didn't involve setting up a separate server yet still allowed dynamic responses. Since MSW came out, I still think mock-requests has a better and simpler API but MSW allows you to see the network request in the browser's dev tools which is super nice IMO.
-
How to mock the return value of an rtk query hook?
I'd mock the network responses from the source. Others already mentioned MSW, but I personally like mock-requests better. I don't need to use a complex config nor chained methods, I still get dynamic responses based on request payload, and I can mock the entire app's requests in a single config object (harking back to not needing complex configuration logic or chained methods).
-
Mocking Axios in Jest when not using shortcut methods?
The companies I worked at were using mock-requests to help them with this and it greatly simplified their testing environment. A single call in a test-setup file meant all network calls for all flows were suddenly mocked and accessible for both unit testing and development when servers were down. I'd highly recommend checking it out!
-
What are the new and exciting tech for React projects for 2022?
Feel free to check out the in-depth ReadMe, install, see the JSDoc, source code, or check out the React demo.
visx
-
React Component Libraries
Official Website: https://airbnb.io/visx/
- Show HN: Matrices – explore, visualize, and share large datasets
-
The top 11 React chart libraries for data visualization
Website: Visx GitHub Page
-
Level Up Your Web App with Stunning React Charts: Introducing the Top 10 React Charts Libraries
Visx is a React-based library used for constructing data visualizations. It comprises a set of reusable, low-level visualization components that merge the power of D3 for data transformation and calculations with the benefits of React for updating the DOM.
- Visx – a collection of expressive, low-level visualization primitives for React
-
What are some of the best libraries you cannot work without?
Lol we migrated away from Nivo to Visx. Nivo is pretty cool but we're big fans of Visx due to how composable it is.
-
TypeScript, VisX
You could probably use this as a starting point to anchor it - there's a CodeSandbox link (which is a bit busted due to react-spring though) and I think you may just need to change the direction to "column."
-
Any libraries out there that you recommend for charts/graphs/trees in React?
Best one for React is VISX which is built on top of D3.js.
-
Data Visualization Framework for React, Angular, Svelte, TypeScript, JavaScript
If you work in React and like this approach it's hard to go past Visx - https://airbnb.io/visx
- Airbnb Visualization Components
What are some alternatives?
axios-mock-adapter - Axios adapter that allows to easily mock requests
d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
mocktail - Free, 11MB, containerized, self-hosted mock server.
recharts - Redefined chart library built with React and D3
LibreTrader - Open Source Trading Journal
nivo - nivo provides a rich set of dataviz components, built on top of the awesome d3 and React libraries
msw - Seamless REST/GraphQL API mocking library for browser and Node.js.
ngx-charts - :bar_chart: Declarative Charting Framework for Angular
frhd - An api wrapper for Free Rider HD.
react-vis - Data Visualization Components
jotai - 👻 Primitive and flexible state management for React
react-chartjs-2 - React components for Chart.js, the most popular charting library