12/16 !judgmental should come before the && operator


#1


12/14 Introduction to React.js Part I


Error message: !judgmental should come before the && operator.
As far as I can tell, !judgemental is coming before the && operator. Any ideas what's wrong here?


var favoriteFoods = (
  <div>
    <h1>My Favorite Foods</h1>
    <ul>
      <li>Sushi Burrito</li>
      <li>Rhubarb Pie</li>
      { !judgemental && <li>Nacho Cheez Straight Out The Jar</li> }
      <li>Broiled Grapefruit</li>
    </ul>
  </div>
);


#2

Its a typo
You typed !judg e mental
You should type !judgmental


#3

Thanks so much! Spelling is hard.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.