Re:Show HN: Pynecone – Web Apps in Pure Python
by jennasys on Saturday December 10, 2022 @02:43PM
(#33936035)
The ugliness is something I struggled with a bit when I was first using Transcrypt to create React applications with Python. Even though that approach is more of a 1-to-1 Python-to-JS mapping instead of a Python wrapper, I felt all the calls to createElement affected readability. But once I started using a Python decorator to wrap the components in createElement, the code got a lot cleaner. Here's a basic example based on the official React tutorial:
https://github.com/JennaSys/tictacreact2/blob/main/tictacrea...
[ Parent
| on HN ]
There are no comments on this comment yet.