The StatBlock and Spell editors are currently implemented as Knockout components.
Right now, StatBlockEditor.ts has a lot of complexity involved in converting all of the properties of StatBlock to observables, to be bound in the viewmodel. Converting the HTML template to a react component will basically require a complete rewrite.
For some patterns to follow, take a look at other components that have recently been added to the project. StatBlock.tsx is an example of a component that is being migrated from an existing HTML component, and CustomCSSEditor.tsx is an example of how to build a form in React used to update a JSON structure.
The StatBlock and Spell editors are currently implemented as Knockout components.
Right now, StatBlockEditor.ts has a lot of complexity involved in converting all of the properties of StatBlock to observables, to be bound in the viewmodel. Converting the HTML template to a react component will basically require a complete rewrite.
For some patterns to follow, take a look at other components that have recently been added to the project. StatBlock.tsx is an example of a component that is being migrated from an existing HTML component, and CustomCSSEditor.tsx is an example of how to build a form in React used to update a JSON structure.