react-user-crud
This libs is a frontend integration to adonis-basic-crud
Pre requisits
Install the library
npm i @pd-solucoes/react-user-crud
yarn add @pd-solucoes/react-user-crud
Project requirements
Its necessary add this variables in your .env file at host project.
REACT_APP_API_URL=YOUR_API_URL APPLICATION_IDENTIFIER=YOUR_APP_IDENTIFIER
Usage
You will need install react router dom to run exported router.
In order to use available routes you can use this template in your App.tsx file.
import React from 'react';
import './App.css';
import {Router} from "@pd-solucoes/react-user-crud"
function App() {
return (
<Router
imgUrl="YOUR_IMAGE_LINK"
logoUrl="YOUR_IMAGE_LINK"
projectDescription="YOUR_PROJECT_DESCRIPTION">
</Router>
);
}
export default App;