Commit Graph

8 Commits

Author SHA1 Message Date
Bowen Tan
38803c634a fix test 2021-12-23 10:25:44 +08:00
Bowen Tan
4671791e6a fix test 2021-11-30 11:01:12 +08:00
Yanzhen Yu
57c46027e8 update the spec of component ids in the spec
related to #54
If users naming component with id 'input-1', it may be hard to be
used in the expression, because 'input-1' is not a valid JS variable
name.

So we update the spec to make sure component ids are valid JS variable
names.
According to https://stackoverflow.com/a/1661249, valid JS variable
name can be a big set. In this patch, we just force users to pass
a simple and limited RegExp, which keep application simple and readable.

TODO: validate component ids are not keywords.
2021-09-18 00:57:40 +08:00
Bowen Tan
36cbe2ae25 add eslint 2021-09-17 09:48:40 +08:00
Yanzhen Yu
6cf4619168 trait: trait framework, state trait, event trait 2021-07-18 23:07:24 +08:00
Yanzhen Yu
26a32c6269 impl basic state management with zustand 2021-07-05 18:33:36 +08:00
Yanzhen Yu
07f7a9a8fa impl plain button, text and app 2021-07-05 14:49:45 +08:00
Yanzhen Yu
0a4199bde8 impl spec types and basic runtime 2021-07-02 16:55:22 +08:00