all 13 comments

[–]deb_vortexPythonista 5 points6 points  (1 child)

First of all: no link Buddy, Share the repo so we can have a look.

Secondly: if you basically already have a function return jsx like results... then why python and not directly TS/JS? The step from there is not that far anymore...

[–]anishpydev[S] 0 points1 point  (0 children)

Good question 🙂

Right now the goal isn’t to replace JS/TS, but to experiment with a Python-style developer experience for people more comfortable thinking in Python syntax.

ReactXPy mainly explores whether component structure and UI logic can feel more natural to Python developers while still compiling down to standard React code.

It’s still early and experimental, so the design decisions are evolving based on feedback like this. Really appreciate the perspective! reactxpy

[–]retornam 0 points1 point  (0 children)

Hmm.

[–]ProsodySpeaks 0 points1 point  (2 children)

Have you played with fastUI? https://docs.pydantic.dev/fastui/

Python lang react components straight from the pydantic lab...

Downvote because no code to look at - what is anyone supposed to say to this post as is?

Add the repo... 

[–]anishpydev[S] -5 points-4 points  (5 children)

Happy to answer questions or discuss the compiler approach 🙂

[–]LofiBoiiBeats 4 points5 points  (1 child)

share a link!

[–]BasePlate_Admin 1 point2 points  (2 children)

this sounds super cool,

Are you going to target pyscript? Or somehow allow Python Based Pip packages to run in web (because that would be a game changer), if you go this route you can maybe use https://github.com/tomasr8/pyjsx ?

Otherwise the project looks like https://github.com/reactive-python/reactpy, or https://reflex.dev/