JavaScript for WordPress Forums Gutenberg Development Toggle Control conditional Reply To: Toggle Control conditional

#139256
Zac Gordon
Keymaster

Is there an error you’re getting or does it just not render. It looks like you’re returning sybling elements. Try nesting both those in a single element perhaps? Also, you’re going from JSX back to JS so curly braces may be necessary as well.

Just for background context. What is your familiarity with JSX conditionals?