make reactjs box flexbox display code example
Example: flexbox in react js
import React from "react";
const FlexboxPage = () => {
return (
<div className="d-flex p-2 col-example">I'm a flexbox container!</div>
);
}
export default FlexboxPage;
.col-example{
padding: 1rem;
background-color: #33b5e5;
border: 2px solid #fff;
color: #fff;
text-align: center;
}