This is a React learning project created as part of a 30-day web development journey. The project demonstrates various React concepts and hooks through practical examples.
This project was bootstrapped with Create React App and contains multiple React components showcasing different concepts:
UseEffect Component (useEffect.js
) - Currently Active
useEffect
hook with state dependenciesuseEffect
responds to state changesIncrementor Component (Incrementor.js
)
useState
hookForm Component (From.js
)
Data Component (Data.js
)
datas.json
)useState
to manage data stateuseState
, useEffect
)src/
├── App.js # Main App component
├── index.js # Entry point
├── useEffect.js # UseEffect demo (currently active)
├── Incrementor.js # Counter component
├── From.js # Form component
├── Data.js # Data rendering component
└── datas.json # Sample JSON data
The project is currently showcasing the UseEffect Component which demonstrates:
useEffect
hook monitoring state changesIn the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
npm test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
This project is part of a structured learning approach to React development. Each component demonstrates specific React patterns and best practices:
useState
useEffect
Future enhancements planned:
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
npm run build
fails to minifyThis section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify