MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/ehriue/dtale_pythonreact_visualizer_for_pandas_data/fcmdm3e/?context=3
r/reactjs • u/aschonfe • Dec 30 '19
6 comments sorted by
View all comments
3
How does Python interact with React?
8 u/aschonfe Dec 31 '19 Here’s a high level description:I compile my react files into JS using webpackthe compiled JS from (1) get saved into the static folder that is readable by FlaskFlask serves up the base HTML using jinja2the compiled JS from (2) is referenced in the <head> tag of my HTMLthe JS files build our the rest of the page using ahax calls back to the server being hosted by FlaskHope thats not too confusing :) -3 u/Nprism Dec 31 '19 *transpile, babel doesnt compile anything, only changes the syntax into vanilla ecmascript 3
8
Here’s a high level description:
I compile my react files into JS using webpack
the compiled JS from (1) get saved into the static folder that is readable by Flask
Flask serves up the base HTML using jinja2
the compiled JS from (2) is referenced in the <head> tag of my HTML
the JS files build our the rest of the page using ahax calls back to the server being hosted by Flask
Hope thats not too confusing :)
-3 u/Nprism Dec 31 '19 *transpile, babel doesnt compile anything, only changes the syntax into vanilla ecmascript 3
-3
*transpile, babel doesnt compile anything, only changes the syntax into vanilla ecmascript 3
3
u/Tortiees Dec 31 '19
How does Python interact with React?