Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Reagent #198

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

soyPabloG
Copy link

@soyPabloG soyPabloG commented Apr 2, 2024

The current version of Reagent is 1.2.0, so I bring oz up to date (required in a project I'm currently working on).

Two "important" changes have emerged:

In recent versions of React, in order to obtain the DOM element of a
component, the use of refs is recommended:
https://react.dev/reference/react-dom/findDOMNode#alternatives

`vega` component uses this function, which in recent versions of Reagent
is deprecated, so the component is adjusted to use `ref`.
In the last version of React (18), ReactDOM.render is no longer supported.

Uses `create-root` (recently provided by Reagent) on `app.cljs`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant