Created
January 13, 2023 00:23
-
-
Save standiki/a0c5c6fc9437b6550fd5f929e132452c to your computer and use it in GitHub Desktop.
How to Set Up React The Easy Way - Index JS File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- index.js --> | |
const Burger = () => { | |
return ( | |
<div> | |
<h2>Burger Ingredients 🍔</h2> | |
<ul> | |
<li>Salad</li> | |
<li>Chicken</li> | |
<li>Meat</li> | |
<li>Cheese</li> | |
<li>Bacon</li> | |
<li>Beef patty</li> | |
<li>Tomatoes</li> | |
<li>Lettuce</li> | |
</ul> | |
</div> | |
) | |
} | |
ReactDOM.createRoot(document.querySelector('#root')).render(<Burger />); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment