Skip to content

Instantly share code, notes, and snippets.

@standiki
Created January 13, 2023 00:23
Show Gist options
  • Save standiki/a0c5c6fc9437b6550fd5f929e132452c to your computer and use it in GitHub Desktop.
Save standiki/a0c5c6fc9437b6550fd5f929e132452c to your computer and use it in GitHub Desktop.
How to Set Up React The Easy Way - Index JS File
<!-- 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