The Problem MyComponent.re App.ts type color = | Red | Yellow | Green; type person = { firstname: string, };
const person = {firstname: "Patrick"}; color="yellow" person={person} /> ReasonReact.Component !== React.Component Immutable Record Type JS Object Type (Js.t in Reason) Variant type (not JS compatible) React.Component Type ReasonReact Component type