Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否支持像写React一样写jsx #33

Open
fengxinming opened this issue Aug 5, 2019 · 2 comments
Open

是否支持像写React一样写jsx #33

fengxinming opened this issue Aug 5, 2019 · 2 comments

Comments

@fengxinming
Copy link

我用ydoc init生成了一个demo,修改jsx之后保存,就被我的vscode格式化乱了,貌似定义内容的语法不是jsx语法,是否可以将这块抽离?

@hellosean1025
Copy link
Member

基本跟 jsx 差不多,但还有点不同
vscode 别配置自动格式化吧

@fengxinming
Copy link
Author

@hellosean1025 要么就支持跟React一样的写法,要么你不如支持像 pug 模版一样的语法,不然你这个真不叫支持jsx。如果真的想把ydoc这个工具做好,建议一定要规范起来;如果你不想开发者写太多代码,建议支持 pug 模版语法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants