Skip to content

⚡ We can create CRUD's so easy for API Rest with Axios and GraphQL with Apollo ⚡

Notifications You must be signed in to change notification settings

cognox-sas/react-easy-crud

Repository files navigation

react-easy-crud

React easy CRUD

NPM JavaScript Style Guide

Install

npm install --save react-easy-crud

Usage

GraphQL

import React from 'react'

import { ProviderEasyCrud } from 'react-easy-crud'
import client from './client';
function App() {
  return (
    <ProviderEasyCrud type='graphql' client={client}>
      <MyApp />
    </ProviderEasyCrud>
  )
}

Rest

import React from 'react'

import { ProviderEasyCrud } from 'react-easy-crud'
import axiosIntance from './axiosIntance';

function App() {
  return (
    <ProviderEasyCrud type='rest' client={axiosIntance}>
      <MyApp />
    </ProviderEasyCrud>
  )
}

License

MIT © miguelcast

About

⚡ We can create CRUD's so easy for API Rest with Axios and GraphQL with Apollo ⚡

Resources

Stars

Watchers

Forks

Packages