1

We are using the Airbnb code style guide with eslint in our React Native app. Since React Native does not use HTML, is the rule react/no-unescaped-entities necessary?

The rule is forcing me to use:

<Text>{`"${this.state.quote}"`}</Text>

instead of:

<Text>"{this.state.quote}"</Text>
Andrew Li
  • 55,805
  • 14
  • 125
  • 143
Phil Mok
  • 3,860
  • 6
  • 24
  • 36
  • @AndrewLi They produce exactly the same thing in the iOS simulator – Phil Mok Jul 11 '17 at 00:16
  • Hmm, I stand corrected. Oddly, Babel does transpile in a way where the original reference is used... I wouldn't count on it in terms of readability though – Andrew Li Jul 11 '17 at 00:22

1 Answers1

0

It is not required unless You want to contribute to some component that use the same code style it is considered best practice

Mohamed Khalil
  • 3,036
  • 1
  • 20
  • 26