File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,16 @@ A simple counter example:
108108Under the hood, the system might be doing something like this:
109109
110110``` js
111- // ...Somewhere in the runtime, invisible to the module...
111+ // ...Somewhere in the runtime, invisible to the module
112112
113- // Preprocessor somehow gets exports from script block
114- import * as env from ' module:script '
113+ // System somehow compiles the component definition
114+ const { env , template } = compile (component)
115115
116- // Env contains the exported variables. E.g.
116+ // `template` contains the string contents of the template block.
117+ // `env` contains the exports from the script block, e.g.
117118// const {setClicks, count} = env
118119
119- // Template is populated and returns a UI tree with dynamic bindings
120+ // Template is turned into a UI tree with dynamic bindings
120121// at specific locations in the tree
121122const vdom = populate (template, env)
122123
You can’t perform that action at this time.
0 commit comments