JSXReact.createElementvsJSXBenefits of JSXBehind the Scenes of JSXBabel&parcelrole in JSXComponentsFunctional ComponentsComposing Components
- What is
JSX? - Superpowers of
JSX. - Role of type
attributein script tag? Whatoptions can I usethere? {TitleComponent}vs{<TitleComponent/>}vs{<TitleComponent></TitleComponent>}inJSX.
-
Create a
Nested header ElementusingReact.createElement(h1,h2,h3 inside a div with class "title")- Create the
same element using JSX - Create a
functional component of the same with JSX Pass attributeinto the tag inJSXComposition of Component(Add a component inside another){TitleComponent}vs{<TitleComponent/>}vs{<TitleComponent></TitleComponent>}in JSX.
- Create the
-
Create a
Header Componentfrom scratch usingFunctional Componentwith JSX- Add a
Logo on Left - Add a
search bar in middle - Add
User icon on right - Add
CSS to make it look nice
- Add a