This is a simple example of a CRUD React application using fetch.
npm ithis project uses Vite JS, so you can use the following commands:
npm run devin the file src\services\postService.js you can change the API URL
const URL_API = "http://localhost:3000/posts";"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-toastify": "^9.1.1"
},
"devDependencies": {
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@vitejs/plugin-react": "^3.1.0",
"vite": "^4.1.0"
}