Joyeeta Nandi's Blog

Joyeeta Nandi's Blog

Use JSX instead of elements

Joyeeta Nandi's photo
Joyeeta Nandi
·Apr 9, 2021·

1 min read

index.js

import React from "react";
import ReactDOM from "react-dom";
import "./index.css";

ReactDOM.render(
  <ul>
    <li>Chicken fry</li>
    <li>Vegetable soup</li>
    <li>Salad</li>
  </ul>,
  document.getElementById("root")
);

image.png

 
Share this