import React, { Component } from 'react' import { rules } from 'Engine/rules' import { propEq, reject } from 'ramda' import { Link } from 'react-router-dom' import './TargetSelection.css' export default class TargetSelection extends Component { state = { targets: [] } render() { let { targets } = this.state return (

Qu'allons-nous calculer ?

{this.renderOutputList()} {targets.length !== 0 && ( )}
) } renderOutputList() { let salaires = rules.filter(propEq('type', 'salaire')), { targets } = this.state return (
{salaires.map(s => ( ))}
) } }