https://github.com/rtinter/letslearnreact_blogapplication
https://github.com/rtinter/letslearnreact_blogapplication
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rtinter/letslearnreact_blogapplication
- Owner: rtinter
- Created: 2024-02-27T13:41:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T20:39:02.000Z (over 2 years ago)
- Last Synced: 2025-02-24T14:55:22.647Z (over 1 year ago)
- Language: JavaScript
- Size: 184 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Little Blog Project to Learn React Basics
I had a lot of fun along the way of my first React application.
## Try It
Get the node-modules + dependencies.
##### `npm install`
Get json-server to store the blogs as a JSON.
##### `npm install -g json-server`
Start the server.
#### `json-server --watch data/db.json --port 8000`
### What I Learned
- **Custom Hooks: How to encapsulate component logic and state management.**
- **Props: Passing data between components**
- **Routing: Using React Router for navigating between pages.**
- **Fetching Data: Making HTTP requests to the JSON Server.**
- **Error Handling: Managing fetch errors with try-catch and AbortController.**
- **Forms: Submitting data through forms and handling form state.**
Enjoy!