Closed
Description
Does this work with Web2Py? I am relatively new to python and Web2Py. I want to implement react server side rendering in an existing Web2Py application.
I tried the following on a local instance:
pip install react
and created modules/react_test.py
:
from react.render import render_component
def test_render(url):
return render_component('../react/Url.jsx', {'arg': url})
It will give an error ImportError('No module named react.render',)
.
Did I do something wrong or is it because I am trying to use python-react
with Web2Py?
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels