Tags: reactive-python/reactpy
Tags
v2.0.0b10 (#1336) - Allow `reactpy.utils.string_to_reactpy` to render empty strings as React fragments. - Allow `reactpy.utils.reactpy_to_string` to render components that return `None` as empty output. - Ensure `h` shorthand for `reactpy.html` is exposed at top-level module (`reactpy.h`)
V2.0.0b7 (#1318) - 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 to 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 only use 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 runtime from ~150 seconds to ~20 seconds on local machines. - 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`
PreviousNext