How can I have access to this.props in react but without render method? In a function method with const variable ? When I make console.log(this.props) I get an error.
const TopBar = ({ className, ...rest }) => {
const classes = useStyles(); const [anchorEl, setAnchorEl] = React.useState(null); const open = Boolean(anchorEl); const [lan ,setLan] = React.useState('EN'); ....
where should I place the props ??