import React, { Component } from 'react'
import './Home.css'
console.log('rules', rules.length)
export default class Home extends Component {
state = {
userSearch: ''
}
render() {
return (
Système
Social
alpha
{this.state.userSearch != null && rules
.filter( rule =>
rule && rule.Cotisation &&
JSON.stringify(rule).indexOf(this.state.userSearch) > -1)
.map( ({Cotisation}) => console.log(Cotisation) ||
- {Cotisation}
)
}
)
}
}