How to fix this violation of this "reaction / non-unescaped-entitie" eslint rule?
This is my code:
const func = () => {
return (
<div >
you're free
</div>
)}
Somehow eslint puts the line "you are free" with an error error HTML entities must be escaped react/no-unescaped-entities
However, from what I see, jsx has already eluded apostrophes. I see that the words are you're free
displayed without problems. If I remove it as '
it will be very difficult for me to search for the string (I would expect that the search you're free
in the editor will return a hit. But, obviously, the editor will skip because the text is actually you're free
)
So what is the best way to eliminate this eslint exception?
+6