This is a simple React.js application that fetches and displays posts from the JSONPlaceholder API. It allows you to create new posts and delete existing posts.
https://sample-react-crud.vercel.app/
- Fetches posts from the JSONPlaceholder API
- Create new posts
- Delete existing posts
Make sure you have the following installed:
- Node.js
- npm (Node Package Manager)
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project's directory:
cd jsonplaceholder-page
-
Install the dependencies:
npm install
-
Start the development server:
npm start
-
Open your web browser and visit `http://localhost:3000\` to view the application.
-
Use the form to create new posts. Enter a title and body for the post, then click the "Create Post" button.
-
Existing posts will be displayed below the form. Each post will have a "Delete" button that allows you to delete the post.
Contributions are welcome! If you find any issues or want to enhance the application, feel free to open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more information.