It is unlikely that there is such an example, it is easier to write it yourself. A component might look like this:
import React, {Component} from 'react'; export default class Filter extends Component { constructor(props, context) { super(props, context); this.state = { types: { male: false, female: false } } } onCheckboxChange(type) { this.setState({ types: { ...this.state.types, [type]: !this.state.types[type] } }); } render() { return ( <div> <ul> <li> <input id="chk-male" type="checkbox" value={this.state.types.male} onChange={this.onCheckboxChange.bind(this, "male")} /><label htmlFor="chk-male">Male</label> </li> <li> <input id="chk-female" type="checkbox" value={this.state.types.female} onChange={this.onCheckboxChange.bind(this, "female")} /><label htmlFor="chk-female">Female</label> </li> </ul> <div> {this.props.json.filter(item => this.state.types[item.sex]).map(item => ( <div>{item.name}</div> ))} </div> </div> ); } }
And call it like this:
<Filter json={[{sex: "male", name: "John"},{sex: "female", name: "Kate"}]} />