🐛 Correction des warnings React li keys missing

pull/82/head
mama 2017-10-09 11:23:44 +02:00
parent d9c00c5660
commit 4374af43b3
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ let decompose = (recurse, k, v) => {
[<li className="composante" key={JSON.stringify(c.composante)}>
<ul className="composanteAttributes">
{R.toPairs(c.composante).map(([k,v]) =>
<li>
<li key={k}>
<span>{k}: </span>
<span>{v}</span>
</li>
@ -48,7 +48,7 @@ let decompose = (recurse, k, v) => {
{makeJsx(c)}
</div>
</li>,
i < (explanation.length - 1) && <li className="composantesSymbol"><i className="fa fa-plus-circle" aria-hidden="true"></i></li>
i < (explanation.length - 1) && <li key="+" className="composantesSymbol"><i className="fa fa-plus-circle" aria-hidden="true"></i></li>
])
}
</ul>