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

Que voulez-vous faire ?

Choisissez un ou plusieurs objectifs de calcul

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