3 ms·
I am curious to know how python is transpired in to JavaScript for tricky cases involving promises/async await Since python usage is quite different from javasc
by RonnieOwnsLexus 4y ago
I am curious to know how python is transpired in to JavaScript for tricky cases involving promises/async await
Since python usage is quite different from javascript and for promises it doesnt even exists.
- picklelo 4y agoOnly the frontend is compiled to JS/React. All the logic and state updates stay in Python and are run on the server, so we don't have to transpile arbitrary Python.
- nmstoker 4y agoThanks. I guess this is all quite new but it would help if it was clearer about what can be run where. From this, it seems like the frontend parts can't have arbitrary Python included and it's the backend parts where you can drop in some Python for the logic. Making this clear early will help people get the right mental model of what this is really doing. Anyway, good luck with this! I will keep an eye on it for sure.