@dakataa/crud-react 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -5
- package/dist/crud-react.css +1 -5
- package/dist/crud-react.js +1229 -13805
- package/dist/main.d.ts +1 -1
- package/package.json +20 -19
package/README.md
CHANGED
|
@@ -4,14 +4,33 @@
|
|
|
4
4
|
|
|
5
5
|
### Install packages
|
|
6
6
|
```
|
|
7
|
-
yarn install dakataa/crud-react
|
|
7
|
+
yarn install @dakataa/crud-react
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
### Configure ENV Variables
|
|
11
|
-
Copy `.env` to `.env.local` and set variables
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
### Configuration
|
|
12
|
+
Base way to configure and use it.
|
|
13
|
+
|
|
14
|
+
main.tsx
|
|
15
|
+
```jsx
|
|
16
|
+
import {StrictMode} from 'react'
|
|
17
|
+
import {createRoot} from 'react-dom/client'
|
|
18
|
+
import {BrowserRouter, Route, Routes} from "react-router";
|
|
19
|
+
import {Crud, CrudConfiguration} from "@dakataa/crud-react";
|
|
20
|
+
|
|
21
|
+
CrudConfiguration('https://rent.local');
|
|
22
|
+
|
|
23
|
+
createRoot(document.getElementById('root')!).render(
|
|
24
|
+
<StrictMode>
|
|
25
|
+
<BrowserRouter>
|
|
26
|
+
<Routes>
|
|
27
|
+
<Route element={<YourLayout/>}>
|
|
28
|
+
<Route path={"*"} element={<Crud/>}/>
|
|
29
|
+
</Route>
|
|
30
|
+
</Routes>
|
|
31
|
+
</BrowserRouter>
|
|
32
|
+
</StrictMode>
|
|
33
|
+
)
|
|
15
34
|
```
|
|
16
35
|
|
|
17
36
|
## Overview
|