Skip to content

reactpy v2.0.0b7

Pre-release
Pre-release

Choose a tag to compare

@Archmonger Archmonger released this 15 Dec 11:22
9e31735

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_reactjs within html.head(...). As a result, this adds a few improvements:
    • Components from component_from_npm can now piggy-back on ReactPy's internal ReactJS export, which can prevent bugs caused by ReactJS version mismatches.
    • Components from component_from_file and component_from_string no longer need to be compiled/built by the user (with vite, webpack, rollup, etc) if they are restricted to using the following imports: react, react-dom, react-dom/client, and react/jsx-runtime.
  • 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_npm could generate a ReactDOM.createRoot was called on existing root warning.
  • Move reactpy.pyscript code into reactpy.executors.pyscript