Skip to content

yelkar-snehal/my-youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npx create-react-app name

npx executes the specified command, x is for executing

report web vitals

measure, analyze, and send metrics of the application

react strict mode

detect unexpected side-effects, unsafe life cycles, deprecated DOM, etc

(same as fragments) won't render anything visually different

renders components twice to ensure cleanup is done proverply, only for development though

If you have the StrictMode enabled, it will fire two times the useEffect on development mode to make sure that you are aware of the possible side-effects that could appear.

tailwind css

dev dependency

no need for post-CSS since CRA takes care of understanding the tailwind's code

Just init tailwind to create a config

react env

In CRA the REACTAPP prefix is a must not a should. See the second link provided by op: "Apart from a few built-in variables (NODEENV and PUBLIC_URL), variable names must start with REACT_APP to work."

react-router DOM

Router Provider's createRouter's return object behaves according to the route/path children are rendered in the outlet outlet is in the wrapper of the main element which renders other compoment as per the app router's path

URLSearchParams

browser native funtion prototype like a map function

cache

[] -> time complexity O(n), because of minimum iteration {} or map -> time complexity O(1), because of the dot operator or getter

redux

base state object shouldn't be mutated inner nested objects can be mutated or return a different state entirely by copying the whole obj

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published