Вы можете написать свой код, как этот
ResusableSideNav.js
import 'react' from 'React'
import sideNave from 'react/materialcomponent'
class ResusableSideNav extends React.component {
render(){
return(
<SideNav
trigger={<Button></Button>}
options={{ closeOnClick: true }}
>
<SideNavItem userView
user={{
background: 'img/office.jpg',
image: 'img/yuna.jpg',
name: this.Prop1.value,
email: this.Prop2.value
}}
/>
</SideNav>
)
}
}
Home.js
import 'react' from 'React'
import ResuableSideNav from the "address where you worte"
class Home extends React.Component {
render(){
<ResuableSideNav prop1={value} {...otherProps}/>
}
}