Lesson 10 curly brackets in if statement


#1

https://www.codecademy.com/courses/react-101/lessons/react-jsx-advanced/exercises/jsx-conditionals-valid-if?action=resume

I don’t understand why you need curly braces within the IF statement if the IF statement is not in a JSX tags ???


#2

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