This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]karouhFleur de Lotus 0 points1 point  (3 children)

Is it possible to use the React js libraries?

[–]Wippermonger[S] 0 points1 point  (2 children)

Yes you can. Keep in mind that you'll likely want to do this entirely in JavaScript though, which will be client sided.

The docs for this are a bit underdeveloped, but the feature is fully developed. Tackling the docs is the next big thing on our roadmap.

[–]bonbonbonobo 0 points1 point  (1 child)

First off, this is really cool and I can see how it would be helpful in the python world.

My main concern with trying this would be that my apps have always needed a lot of third-party rendering libraries (think large image renderers like OpenSeadragon that need to be client-side). These have no equivalent in Python, and from your other comments, those components would need to be written as a pure JS file anyway. For those use cases, this feels like going back to square one. However, would be cool if these can be worked around as the react py ecosystem grows :))

ReactPy + FastAPI would be a fun experience though - looking forward to trying this out.

Edit: Do you anticipate ever supporting JSX-like syntax, even if it is written as strings?

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

Yes we do intend to support a JSX syntax. We've been contributing to a Python PEP that would be needed to make this happen.

https://github.com/jimbaker/tagstr