nutboltu / react-faker

A react component that mocks your APIs in dev environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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} />
  </>
)

About

A react component that mocks your APIs in dev environment.


Languages

Language:JavaScript 98.4%Language:HTML 1.6%