0.0.1 • Published 2 years ago
react-switchboard v0.0.1
SwitchBoard 🎛
SwitchBoard is a toolkit for creating custom DevTools and mock APIs for your React app.
Features
This project provides a powerful DevTools
component for creating your own custom DevTools.
- Declare mock APIs by providing msw config
- Specify a global delay (to simulate a slow connection)
- Declare custom HTTP response, delay, or status code from each endpoint
- Copy settings to URL for sharing with others
- Specify custom settings tailored to your app
- All settings are saved in localStorage (so they're available next time you open the DevTools)
Quick Start
npm install react-switchboard
Import the DevTools
component:
import { DevTools } from "react-switchboard";
## Contributing
To run the demo app:
npm i npm run cy
To run the demo app and Cypress tests together:
npm run cy
## Roadmap
Support other JS frameworks beyond React.
0.0.1
2 years ago