reactpy v2.0.0b7
Pre-release
Pre-release
All changes from v2.0.0b6 with a few additions:
- JavaScript components will now automagically use ReactPy's internal version of ReactJS, even if the user forgot to call
import_reactjswithinhtml.head(...). As a result, this adds a few improvements:- Components from
component_from_npmcan now piggy-back on ReactPy's internal ReactJS export, which can prevent bugs caused by ReactJS version mismatches. - Components from
component_from_fileandcomponent_from_stringno longer need to be compiled/built by the user (withvite,webpack,rollup, etc) if they are restricted to using the following imports:react,react-dom,react-dom/client, andreact/jsx-runtime.
- Components from
- Changes to test suite, fixtures, and tooling to allow pytest to run in parallel mode (via
hatch test --parallel). This reduces test suite runtime from ~150 seconds to ~20 seconds. - Fix bug where ReactJS components from
component_from_npmcould generate aReactDOM.createRoot was called on existing rootwarning. - Move
reactpy.pyscriptcode intoreactpy.executors.pyscript