October 3, 2023
The starting point for blocks is clear and easy: at page-build time, you can configure blocks and add content to them. This gets converted into HTML and displayed, more or less statically, in the end-user’s browser.
If you have a form in your block, can you post the data you collect back to the server? Can you use Ajax for this? What if you’d like to prefill the form with the current data, let the user edit it, and then save it back? Can you rerender the block as the user interacts with them?
The answer to all of these is yes. In the workshop, we’ll (quickly) work through live examples of all of these. If you’re OK with setting up a local installation of WP, you’re invited to follow along.