We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6055885 commit f2b6c8eCopy full SHA for f2b6c8e
src/components/MDX/Sandpack/template.ts
@@ -34,11 +34,9 @@ root.render(
34
test: 'react-scripts test --env=jsdom',
35
eject: 'react-scripts eject',
36
},
37
- // pin these deps to avoid issues
38
- // with sandpack's dependency resolution
39
dependencies: {
40
- react: '19.2.0',
41
- 'react-dom': '19.2.0',
+ react: '^19.2.0',
+ 'react-dom': '^19.2.0',
42
'react-scripts': '^5.0.0',
43
44
src/components/MDX/SandpackWithHTMLOutput.tsx
@@ -56,8 +56,8 @@ export default function formatHTML(markup) {
56
const packageJSON = `
57
{
58
"dependencies": {
59
- "react": "19.2.0",
60
- "react-dom": "19.2.0",
+ "react": "^19.2.0",
+ "react-dom": "^19.2.0",
61
"react-scripts": "^5.0.0",
62
"html-format": "^1.1.2"
63
0 commit comments