I’m using Material-UI and its React components. I was doing this and it was (and still is) working fine:
<MenuItem key={3}
itsLayout={this}
onTouchTap={function () {
this.itsLayout.handleLockOpen()
this.itsLayout.setState({selectedAuthActionIsLogin: true})
}
}
>Log In</MenuItem>
But now I’m getting a new console warning saying:
Unknown prop itsLayout on <span> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
If I need to update the state of the layout component from inside a component, what is the correct way to access the layout when that component is clicked?