-
javascript cannot run without script in html.
-
SPA - single page applications react only has a single html file(SPA) in which whole javascript is injected BTS with the help of react scripts.
-
function name should be capatalised and file name starting with a capital letter is a best prictise.
-
ReactDOM crate a new dom of itself which is also k/a virtual dom
-
{expression} - evaluvated expression
-
const reactEle = React.createElement(htmlelement,{attributes of element if any in key value pairs},children, evaluated expression) -to create a cutomReact element, it uses babble bundler
-
React controls the UI updation that why we need HOOKS
-
props help in making components reusable
-
copy functionality - window.navigator.clipboard.writetext()
-
REACT ROUTER DOM- Link{href = to} - it is used insted of anchor tag because when anchor tag is clicked it refreshed whole html doc and we dont want that in react. NavLink -
-
Notifications
You must be signed in to change notification settings - Fork 0
mujeebnazir/react-notes
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
react library notes that I've made while learning the concepts of the react!
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published