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

如果只是在某个方法调用时写jsx也是需要这样写吗? #13168

Closed
HChen318 opened this issue Feb 8, 2024 · 0 comments
Closed

如果只是在某个方法调用时写jsx也是需要这样写吗? #13168

HChen318 opened this issue Feb 8, 2024 · 0 comments

Comments

@HChen318
Copy link

HChen318 commented Feb 8, 2024

          > 请使用 `<script setup lang="jsx">`

不要在普通的 JS 代码块中写 JSX。

由这个 PR 引起:vuejs/core#5846
我觉得这不能算 bug,之前的行为(把所有 JS 当 JSX 识别)才是 bug。

有相关文档中指出这一点吗,如果没有我觉得有必要说明一下😃

Originally posted by @baiwusanyu-c in vuejs/core#8388 (comment)

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

1 participant