@visx/text
Advanced tools
Comparing version 2.3.0 to 2.10.0-alpha.0
{ | ||
"name": "@visx/text", | ||
"version": "2.3.0", | ||
"version": "2.10.0-alpha.0", | ||
"description": "visx text", | ||
@@ -39,3 +39,3 @@ "sideEffects": false, | ||
"peerDependencies": { | ||
"react": "^16.3.0-0 || ^17.0.0-0" | ||
"react": "^16.3.0-0 || ^17.0.0-0 || ^18.0.0-0" | ||
}, | ||
@@ -46,5 +46,5 @@ "publishConfig": { | ||
"devDependencies": { | ||
"@testing-library/react-hooks": "^3.4.2" | ||
"@testing-library/react-hooks": "^8.0.0" | ||
}, | ||
"gitHead": "d4ed34896a8e5fc581e8c3f4af39e7ee5a3b3689" | ||
"gitHead": "1b5897b3e4fd44e321d96682af2d6d2406bf55ab" | ||
} |
@@ -23,3 +23,4 @@ # @visx/text | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
// note: react@18 syntax | ||
import { createRoot } from 'react-dom/client'; | ||
import { Text } from '@visx/text'; | ||
@@ -33,3 +34,5 @@ | ||
render(<App />, document.getElementById('root')); | ||
const root = createRoot(document.getElementById('root')); | ||
root.render(<App />); | ||
``` | ||
@@ -36,0 +39,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
28653
43
2