Open AlexMost opened 5 years ago
Example:
const el = <br/>; const = jt`text ${el} text`
React will warn that br should have a unique key.
br
Possible solutions:
jt
<React.Fragment/>
IMO fragment makes most sense because the number of elements is constant.
Example:
React will warn that
br
should have a unique key.Possible solutions:
jt
content in the<React.Fragment/>