πReact Js (Udemy - John Smilga)
https://www.youtube.com/watch?v=4UZrsTqkcW4&t=38s
What is npx?
Starting steps after create-react-app
How to connect index.js (starting point of the app) with index.html?
JSX
React Fragments
The idea of splitting as components
Practical Tasks
Task 1 : (use state on Array) Remove List Items on click
Array) Remove List Items on click
Task 2 : (use state on Object) Change the message property in the object
Object) Change the message property in the object
Task 3 : (use State on numbers) - Bad practice as we are not using callback to update state. Good practice is given below

Task 3 : (Good practice) Why to pass a callback function to update the state?
UseEffect hook



UseEffect with second argument empty

UseEffect with dependencies


useEffect with clearnup function


Task 4 : (useEffect) Build a github user profiles page

Task 5: Set Loading Or Error before displaying data
&& and || operators


Problems with Fetch API - Reasons to use axios
React Forms
Controlled Inputs (As I type I change the state)
Uncontrolled Inputs

htmlFor

Submit button
Now, how to access the data inside the inputs
Task 6: Add form data to an array and display it
Handling multiple inputs
useRef hook - Uncontrolled inpyts

useRef is mostly used to focus on the input element when the page loads
useRef is mostly used to focus on the input element when the page loadsTask 7 : Focus on input when form loads using useRef
2nd use case of useRef
useRef
useReducer hook

Add, remove operations of useReducer
useContext hook


Setup errors of workspace
The browser page does not auto-refresh after making any changes in the component
Interesting Articles
Do we need to do event delegation in react?
Build and Deploy
Add CI =

Custom hook
PropTypes


Performance Optimization
React Memo


useCallback




useMemo


Last updated

