Engine rebuild with user—side PhantomComponent class #62
Labels
🌋 epic
This is is gonna take time and effort
🧪 experiment
Experimental feature
👻 phantom
This applies to the phantom engine
Have tested this and it works. The result is a much more idiomatic user—side Phantom, similar to class—based React, but with key differences:
User lists children by returning an array from a
state()
methodUser defines state by returning a state object from a
state()
methodUser defines markup by returning a template string from a
render()
methodIn this markup, the user...
@componentName
attribute for wrapping elementthis.<childComponentName>
this.<propertyInUserDefinedState>
User obtains a reference for every component from Phantom
User can access and update state via top—level component properties
Prototype
The text was updated successfully, but these errors were encountered: