root
Assign and resolve component variables.
Example
Start by putting your variables in a single file
button.js
{ root;}
Then retrieve variables with get
var values = root;// values.size === 10
You can configure values through the root.js
to override defaults
var root = ; root;
...or pass props as the second argument to override default values and root.js
values
import Button from 'button.js' var configuredValues = Button(__, {})// configuredValues.size === 50 var newValues = Button(__, {size: 20})// newValues.size === 20
License
MIT