Releases: d3plus/d3plus-react
Releases · d3plus/d3plus-react
v1.2.2
v1.2.1
v1.2.0
🔥 BREAKING CHANGE 🔥
This release updates the use of React's legacy context API to use the new useContext
API that was released with React v16.8. As such, if you are currently passing a global config Object down via context, you need to update your code to use the newly exported context Provider. Add the following wrapper component around the container whose children you want to apply a global config:
import React from "react";
import ReactDOM from "react-dom/client";
import {D3plusContext} from "d3plus-react";
import App from "src/App.jsx";
const globalConfig = {
shapeConfig: {
fill: "red"
}
};
ReactDOM.createRoot(document.getElementById("viz")).render(
<React.StrictMode>
<D3plusContext.Provider value={globalConfig}>
<App />
</D3plusContext.Provider>
</React.StrictMode>
);
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
This update includes potentially breaking changes from the sub-modules, so please read the full release notes: https://github.com/d3plus/d3plus/releases/tag/v2.0.0