Je Xia
Je Xia
@shadowtime2000 yes, `AlefType` will tell compiler the variable whether it is a reactive role explicitly.
@shadowtime2000 yeah you are right, it maybe too much. or we can allow customized labels that can be invoked in frameworks: ```jsx // App.alef $deno: version = Deno.version $node: version...
or use `$_` label prefix to specify different rendering env: ```jsx // App.alef let isDev = false $_dev: isDev = true $_deno: version = Deno.version $_node: version = process.versions $_browser:...
i'm thinking it could be better to use types statement for Memo: ```js const double: Memo = 2 *n ``` since in typescript you need to declear the memo variable...
or even no `Memo` when it has compute expr with `state` variables as constant: ```js let n: number = 1 const double: number = 2 * n // memo ```
@shadowtime2000 we can implement a `hydrate` method in Alef Component: ```js import App from "./App.output.js" // spa (new App).mount(document.querySelector('main')) // ssr (new App).hydrate(document.querySelector('main')) ```
@shadowtime2000 thanks, i just added your suggestion to the RFCs.
@shadowtime2000 i moved it to here because i don't want to people see any html code in stage 1 - 2. And it means people should not use the `mount`...
@shadowtime2000 this week i will finish the mvp AOT compiler, but not including the **css transform**, i saw the project [swordcss](https://github.com/swordcss/swordcss), it is cool! any idea about CSS AST parse...