import React from 'react' import {selectVariables, selectTagStats} from '../selectors' import {connect} from 'react-redux' const Variable = ({data: {variable, tags}}) =>
  • {variable}

  • class Explorer extends React.Component { render() { return (

    Les prélèvements sociaux sur les salaires

    ) } } class TagSelect extends React.Component { render(){ let {name, choices, number} = this.props.tag return (
  • {`${name} (${number} variables)`}
  • ) } } const mapStateToProps = (state) => ( { variables: selectVariables(state), tags: selectTagStats(state) } ) const VariableExplorer = connect(mapStateToProps)(Explorer) export default VariableExplorer