Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

Code generator design

Paul Jolly edited this page Oct 11, 2016 · 13 revisions

Assumptions

  • Components are identified by the code generator as types with an anonymous embedded react.ComponentDef field

Need to

  1. work out how we indicate to the code generator what the prop and state types for a component are
  2. work out how we handle the zero-value state case when GetInitialState is not implemented
  3. work out whether we support some sort of Init function then code-generate the New* function for a component, which would help avoid needing to remember to call BlessElement
  4. prevent state and props types from being *js.Object-special
Clone this wiki locally