Example demonstrates partial page rendering with Stimulus. An event triggers a Stimulus component to perform an ajax call to load a server-side generated html page fragment. The fragment appends or replaces a part of the page. The fragment can contain other Stimulus components with dynamic behavior. Entered data can be preserved. Form submission still works as normal.
In the form, if the number of prizes is changed, the section below it will be replaced with a new html fragment.
In the table with participants a new row for a new participant can be added via the + button. The new row is a server-side generated html fragment.