JavaScript for WordPress › Forums › Gutenberg Development › Conditional statements before/on save › Reply To: Conditional statements before/on save
April 11, 2018 at 1:15 pm
#44925
Zac Gordon
Keymaster
Okay, I added an example block example to the repo called “11-url-input-conditional” that should give you a head start.
Might also want to explore this page a little bit on conditional logic in JSX 🙂
https://reactjs.org/docs/conditional-rendering.html
Hope that helps!