How do I render an indeterminate checkbox via JSX?
Here\'s what I\'ve tried:
function ICB({what}) {
return
You can use the componentDidMount
step (which is invoked after the initial rendering) to set that property:
componentDidMount() {
React.findDOMNode(this).indeterminate = this.props.state === "indeterminate";
}
If you want that property to be updated with subsequent renders, do the same thing in componentDidUpdate
also.