reactpy
reactpy copied to clipboard
Automatically convert JS hooks to IDOM hooks
trafficstars
Current Situation
Hooks within react libraries, for example, usePagination hook within React-Table currently need to be manually rewritten in order to function in IDOM.
Proposed Changes
Investigate whether JS hooks can automatically be converted to Python hooks in some situations.
Implementation Details
See if transpilers, such as Js2Py can be used to convert hooks automatically.
Or if we can somehow wrap the hook javascript and inject some client <-> server handler logic on-top.
Pyodide might be the preferred way to accomplish this: https://blog.pyodide.org/posts/react-in-python-with-pyodide/
Closing this in favor of #786