HTML and JS had a baby named JSX.
Diomedes Lajara
Posted on December 19, 2018
First I opened up the terminal, ran npm to type "create-react-app jsx"
on the project then proceeded to delete everything inside the SRC folder and created index.js. Added a few comments to guide me using double backslash (//). Inserted React and ReactDOM imports. Followed by creating a Conts App for the newly created Component. Finally threw in a render method with ReactDOM and grabbing the root ID from the index.html using querySelector.
With this mixture of JSX elements inside the functional component and NPM start in the terminal, I ended up seeing my first component in the screen. “Live with React”
https://thepracticaldev.s3.amazonaws.com/i/43hynn9xzinadjhhxyvy.png
postone
Posted on December 19, 2018
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.