- Learning React with a bunch of activities from the freeCodeCamp.org tutorial. Named files folders 'React-'...;
- After finishing that, I started this other course from Scrimba, focused on React Hooks. Named files folders 'Hooks-'...;
- Not satisfied yet, tried the explanation and exercises proposed by Rocketseat focused on
useState()
&useEffect()
.
This other readme
information came from 'create-react-app' configuration. Simple first steps here, but necessary.
Files | Notes |
---|---|
ReactDOM & JSX | First steps into React/ReactDOM importing & JSX |
List <ul> with <li> |
Adding an unordered list into React |
Multifile % components | Working with multiple files & import and export default |
Parent & Child | Tree structure implementation, with and main containing header, content and footer |
Style with Classes | Applied CSS to an component by import it; First glance at JSX's 'className' |
TodoApp-phase1 | Creating an to-do-app, first phase: <ul> and <input /> checkboxes |
JSX dealing with Javascript | Javascript variables put inside JSX statement & CSS inline on Javascript Object also inside JSX. |
TodoApp-phase2 | Added some CSS style to it, and React component were splitted: TodoApp & TodoItem. |
Props in Peace | First time handling 'props' passed from one component to another. |
Props styling | Jokes passing from one component to another, with inline style w/ JS conditionals |
Mapping Components | Using JS .map() to organize info got from a JS Object data |
TodoApp-phase3 | Implemented a database of jokes to be organized with .map() , and accessed inside the components. |
Class-based component | Turning the function s into class ... extends React.Component {} |
State Practices 1 & 2 | Dealing with this.state for the first time, inside constructor() method. Then, retrieving data from this.state inside render() . |
TodoApp-phase4 | Transform function into class, put database into state property. |
TodoApp-phases 5 & 6 | Transform 'TodoItem.js' into a class too, and create a handler to deal with checking the checkboxes and changing state properties |
Lifecycle Methods | Intro to life cycle methods that specify React application |
Conditional Rendering - Part 1 & 2 | Using conditional to render or not some kind of component - usefull to 'loading' waiting; Using componentDidMount() ; Part 2 only adds conditional using && |
Conditional Rendering Practice | Using conditional to render an logIn/logOut button, added extra logins count. |
TodoApp-phases 7 | Applied conditional to style differently the 'completed' tasks |
Fetching Data from API | Using fetch() to get data from an external API (StarWarsAPI), with componentDidMount() to change state, and displya info gathered. |
Forms in React - Parts 1 & 2 | Intro to forms with inputs setting state; extra: component created to isolate the text inputs, works the same way. Part2 complements showing extra four types of input: textareas, checkboxes, radio buttons and select & options |
Forms practice (with nested elements in state) | Created a travel company forms, and show the entered data down to verify changing state. |
Mini-project: Meme Generator | Small project of an webapp that fetch img of memes and adds TOP and BOTTOM elements on it, creating an unique Meme. Used: fetch() , <Loading /> conditional rendering w/ CSS |
Hooks useState() parts 1 & 2 | Intro and usage of React Hoooks' useState() to set the state in Hooks way, and work with it. |
- React Hooks 'scrimba' course: the goal is to complete the project of a Paint similar, built as a webapp.
Files | Notes |
---|---|
Others Components | Canvas handling, randomColor() made function, CSS style and other main components. |
Hooks: useState() | Create the foundation to the Paint webapp. First, with useState() usage. |
Hooks: useEffect() | Then, with useEffect() we handle the resize alert. |
Hooks: useRef() & useCallback() | Intro: shows a little bit of the power of useEffect() to do the work of previous 'Lifecycle Methods'. |
- Then, a quick overview of
useState()
&useEffect()
made by RocketSeat. All inside this one MainApp.js.
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
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
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify