reactpy icon indicating copy to clipboard operation
reactpy copied to clipboard

Automatically convert JS hooks to IDOM hooks

Open Archmonger opened this issue 3 years ago • 1 comments
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.

Archmonger avatar Nov 27 '21 01:11 Archmonger

Pyodide might be the preferred way to accomplish this: https://blog.pyodide.org/posts/react-in-python-with-pyodide/

rmorshea avatar Feb 11 '22 21:02 rmorshea

Closing this in favor of #786

Archmonger avatar Feb 23 '24 09:02 Archmonger