
Want to become a developer but don’t know what a Material UI is? Don’t worry we got you covered!
Reading this article will give you a clear understanding of what material UI in React is. Knowing its usage, advantages, and basic syntax.
| import React from 'react'; import ReactDOM from 'react-dom'; import { AppBar, Toolbar, Button, Typography } from '@mui/material'; function NavigationBar() { return ( <AppBar position="static"> <Toolbar> <Typography variant="h6" component="div" sx={{ flexGrow: 1 }}> My Website </Typography> <Button color="inherit">Home</Button> <Button color="inherit">About</Button> <Button color="inherit">Services</Button> <Button color="inherit">Contact</Button> </Toolbar> </AppBar> ); } ReactDOM.render(<NavigationBar />, document.getElementById('root')); |