Notes
Notes
*Q. What converts New Code to Older Code(For older version Browsers)?
A: Babel
We do not need to write polyfill. Babel does it automatically.
Note: Parcel will not remove console.log automatically. We need to configure for
it. There is a package for it, named 'babel-plugin-transform-remove-console' either
from babel website or npmjs website: npm install babel-plugin-transform-remove-
console --save-dev /-D
React-key Reconciliation :
When there are siblings in an array, we need to give keys for each sibling
HW: Read about React-key Reconciliation from React Docs.
React Component:
2 Types:
1. Functional Component- NEW
2. Class Based Component - OLD
Functional Comp is just a normal function that returns some piece of JSX, or a
react element, or a function.
Name of a Component starts with a Capital Letter (not mandatory, but good practice
to use)
Continued... Part 2
Hope it was Helpful ??
Notes Part 2:
Home Work:
1. Read about React-key Reconciliation from React Docs.
2. Do Whatever Akshay did in the Session.