jenseng / react-i18nliner

translate="yes" all the things
MIT License
45 stars 15 forks source link

key collisions in ComponentInterpolator #13

Closed jenseng closed 9 years ago

jenseng commented 9 years ago

given:

<div translate="yes">
  Your Score
  <b className="learnerScore">{score}</b><span className="superscript">%</span>
</div>

you get a placeholder for <b> and a wrapper for the <span>, and they both get key="1" ... keys should be unique across interpolated wrapper and placeholder components