react-faker
v0.1.2
Published
Runtime mocking API for react component
Downloads
6
Readme
React Faker
A react component that mocks your APIs in dev environment.
Installation
npm install --save-dev react-faker
Usage
import ReactFaker
in the top-level component
import React from 'react';
import ReactFaker from 'react-faker';
const App = () => (
<>
<App />
<ReactFaker initialFakeApis={mockData} />
</>
)