<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/react@18/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js" crossorigin></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
</head>
<style>
div{
display:flex;
flex-wrap: wrap;
width:280px;
}
.boxStyle {
height:50;
width:50px;
padding:20px;
margin:5px;
}
.red{
background-color: red;
}
.blue{
background-color: blue;
}
.yellow{
background-color: yellow;
}
.green{
background-color: green;
}
</style>
<body>
<div id="root"></div>
<script type="text/babel">
const Container = () => (
<>
<div className="boxStyle red">Red</div>
<div className="boxStyle blue">Blue</div>
<div className="boxStyle green">Green</div>
<div className="boxStyle yellow">Yellow</div>
</>
)
function MsLogo() {
return (<Container />);
}
ReactDOM.render(<MsLogo />, document.getElementById('root'))
</script>
</body>
</html>