Tags: reactive-python/reactpy
Tags
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`
v2.0.0b4 (#1311) - Improve type hints on `reactjs_component_from_*` - Remove `jsonpointer` dependency - `use_effect` will now generate an exception if attempting to use an async function. Use `use_async_effect` instead. - Add warning within `event-to-object` if providing a non-object value. Non-objects will now be passed through as-is. - Prevent `@reactpy/client` from attempting to convert non-object types. - Remove deprecated `Stop` exception type - Remove deprecated `hotswap` function - Remove top-level export of `reactpy.Layout`. Use `reactpy.core.layout.Layout` instead. - Remove top-level export of `reactpy.Event`. Use `reactpy.types.Event` instead.
v2.0.0b4 (#1311) - Improve type hints on `reactjs_component_from_*` - Remove `jsonpointer` dependency - `use_effect` will now generate an exception if attempting to use an async function. Use `use_async_effect` instead. - Add warning within `event-to-object` if providing a non-object value. Non-objects will now be passed through as-is. - Prevent `@reactpy/client` from attempting to convert non-object types. - Remove deprecated `Stop` exception type - Remove deprecated `hotswap` function - Remove top-level export of `reactpy.Layout`. Use `reactpy.core.layout.Layout` instead. - Remove top-level export of `reactpy.Event`. Use `reactpy.types.Event` instead.
v2.0.0b4 (#1311) - Improve type hints on `reactjs_component_from_*` - Remove `jsonpointer` dependency - `use_effect` will now generate an exception if attempting to use an async function. Use `use_async_effect` instead. - Add warning within `event-to-object` if providing a non-object value. Non-objects will now be passed through as-is. - Prevent `@reactpy/client` from attempting to convert non-object types. - Remove deprecated `Stop` exception type - Remove deprecated `hotswap` function - Remove top-level export of `reactpy.Layout`. Use `reactpy.core.layout.Layout` instead. - Remove top-level export of `reactpy.Event`. Use `reactpy.types.Event` instead.
PreviousNext