WP React Post is a Simple React application that allows you to view and display WordPress posts. It uses the WordPress REST API to fetch post data and renders it in a user-friendly format.
- Clone the repository:
git clone https://github.com/abdolmajed3/wp-react.git - Navigate to the project directory:
cd wp-react - Install the dependencies:
npm install
- Start the development server:
npm run dev - Open your browser and navigate to
http://localhost:5173 - You can navigate to posts and categories
- Fetches post data from the WordPress REST API.
- Displays the post title, content, and other relevant information.
- Handles loading state while fetching data.
- Handles errors during data fetching.
- React
- React Router
- Fetch API
Contributions are welcome! If you have any suggestions or improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.