from reactpy import component, html, run
@component
def App():
return html.h1("Hello, world!")
run(App)
from reactpy import component, html, run
@component
def App():
return html.h1("Hello, world!")
run(App)
|
1
有没有 python 版的 vue
|
|
NessajCNAug 11, 2023
2
支持 jsx 吗.....
|
|
3
这下是真的需要游标卡尺了!🥰
|
|
cherbimAug 11, 2023
4
名字味不对,不应该叫 pyreact 么?
|
|
5
@NessajCN 真要支持也应该叫 pyx ( PythonXML )吧, 实际上 jsx 也是最终翻译成 js 来执行的,只有有人愿意去开发这个编译工具当然也可以支持。
|
|
6
@naminokoe 可能 react 的理念更合适一些吧。。。
|
|
NessajCNAug 11, 2023 via Android
7
@ChrisFreeMan 你在 python 里也得翻译成 js 啊…浏览器又不认识 python 脚本
|
|
8
@NessajCN 可以认识的 https://pyscript.net
|
|
9
@NessajCN 好了好了,我知道了它也是 js 写的,不要较真
|
|
11
|
|
RuiCBaiAug 12, 2023 via Android
12
|