React / foldkit-react-codegen
What it refuses
Each refusal prints file:line:column - error CODE: message. If any file has a
diagnostic, the CLI writes nothing and exits with status 1.
| Code | Cause |
|---|---|
FKREACT0001 | A builder with no standalone JSX form: h.submodel without a literal { model, view, toParentMessage } config, or h.keyed with a computed tag |
FKREACT0002 | An attribute without a faithful React equivalent: OnMount, OnUnmount, OnChange (the native change event, which React's onChange is not), InnerHTML, and anything not in the table |
FKREACT0003 | Attributes the compiler cannot see: a non-literal attribute array, a spread, or an attribute built outside an element |
FKREACT0004 | The builder stored or used other than calling it or passing it to a helper view |
FKREACT0005 | An argument it cannot lower: click options, Style without an object literal, Attribute with a computed name |
FKREACT0006 | A lazy slot or factory used other than const slot = createLazy() and a direct slot(...) call |
FKREACT0007 | A custom element whose spec is not a literal CustomElement.define({ tag, properties, events }) in the same module, a factory it does not declare, or a spec or bound builder used other than spec.withMessage(h) and calling it |
For any of these, keep that part in Foldkit and use foldkit-react, or write
it in React.