I want in react router 6 to show an placeholder when there is no outlet. Is there any way?
<>
<Grid item xs={12} sm={2} style={{backgroundColor: '#aaa'}}>
<Button onClick={() => this.props.navigate('next')} variant='contained'>next</Button>
<Button onClick={() => this.props.navigate(-1)} variant='contained'>back</Button>
</Grid>
<Outlet/>
</>