JavaScript for WordPress Forums Gutenberg Development Conditional statements before/on save Reply To: Conditional statements before/on save

#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.

https://github.com/zgordon/gutenberg-course/tree/master/jsforwp-example-blocks/blocks/11-url-input-conditional

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!