While it's currently not possible to implement in core, we can use our template tag to render client-side components within this repo as a Django exclusive early release.
It seems logical that the root component should be def root(...) by default.
We may also want to minify the python code we generate. Minification should be toggleable through minify=FalseNot feasible since minification would rename the root component
Current Situation
While it's currently not possible to implement in core, we can use our template tag to render client-side components within this repo as a Django exclusive early release.
Proposed Actions
Develop client side components with multiple execution methods. The initial draft will be based on https://github.com/reactive-python/reactpy/discussions/1096
We need to make sure the interface makes the user understand that the whole file is going to be loaded into the browser.
Here's a quick draft of potential API designs:
We should also create a callable variant that can be used as a child within server side components.
It seems logical that the
root
component should bedef root(...)
by default.We may also want to minify the python code we generate. Minification should be toggleable throughNot feasible since minification would rename the root componentminify=False