Open mhanuel26 opened 2 years ago
Unfortunately this is not really a way I would recommend. If you are building a React application, then the rendering should be done in React, not in Flask. In fact there is a React package for Grid js that you can use: https://www.npmjs.com/package/gridjs-react.
Hi @miguelgrinberg ,
I was using gridjs in my application with some success and then I saw your react-flask blog, I was giving it a try but I found the gridjs table is not rendering under React, not sure if makes sense to use React in this way, anyway, I tried with your users example, the javascript code does not seems to be working.
Does this makes sense?
Using the basic_table.py with
/api/users
endpoint instead of/
and your code for react-flask with this App.js
I am not able to render the table. I tried to put the javascript scripts also in the index.html like this
Looking forward for your comments,
Thanks in advance,