GitXplorerGitXplorer
x

react-in-python

public
4 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
142cf84003c38ede5513b75e60ed4407e04908b8

Add readme for more details

xxhlulu committed 3 years ago
Unverified
80d8e02782d240936e2510e4484addf550b99493

Indentation

committed 3 years ago
Unverified
9fedac83668e7c3a8f2b147370510d96f6687019

first commit

committed 3 years ago

README

The README file for this repository.

React in Python

This shows you how to use React 16+ inside Python, using pyodide. The example shows how to update a very simple button using React hooks with only Python code. The only JS code needed is to interface JS with the Python code (thanks to Pyodide).

I recommend checking out pyodide if you are interested in running the pydata stack inside your browser via webassembly. Note that this is not a Py > JS transpiler - python, numpy, pandas etc. are really running inside your browser. This also allows you to import Python libraries from pip via micropip (see pyodide docs).

My tweet expands on this: https://twitter.com/xhluu/status/1420814963459960836

Inspiration

The original notebooks that tried to use React inside iodide (the predecessor to pyodide):