Skip to content

Commit

Permalink
Update react monorepo to v19 (major) (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Jan 6, 2025
1 parent 1a2f9ac commit 7fa44b1
Show file tree
Hide file tree
Showing 6 changed files with 1,597 additions and 1,847 deletions.
10 changes: 10 additions & 0 deletions demo/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"plugins": [
[
"@babel/plugin-transform-react-jsx",
{
"runtime": "automatic"
}
]
]
}
21 changes: 9 additions & 12 deletions demo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { createRoot } from 'react-dom/client';
import React, {
useState,
createRef,
HTMLAttributes,
DetailedHTMLProps
} from 'react';
import React, { useState, createRef, DetailedHTMLProps } from 'react';

import 'scriptex-socials';

Expand All @@ -19,12 +14,14 @@ const getRandomValue = () => {
};

declare global {
namespace JSX {
interface IntrinsicElements {
'social-links': DetailedHTMLProps<
HTMLAttributes<HTMLElement>,
HTMLElement
>;
namespace React {
namespace JSX {
interface IntrinsicElements {
'social-links': DetailedHTMLProps<
HTMLAttributes<HTMLElement>,
HTMLElement
>;
}
}
}

Expand Down
8 changes: 6 additions & 2 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@
"build": "yarn clean && parcel build index.html --no-source-maps"
},
"alias": {
"process": false,
"react": "../node_modules/react",
"react-dom": "../node_modules/react-dom"
},
"dependencies": {
"scriptex-socials": "1.8.0"
},
"devDependencies": {
"@types/react": "18.3.18",
"@types/react-dom": "18.3.5",
"@babel/core": "7.26.0",
"@babel/plugin-transform-react-jsx": "7.25.9",
"@types/react": "19.0.2",
"@types/react-dom": "19.0.2",
"parcel": "2.13.3",
"process": "0.11.10",
"typescript": "5.7.2"
}
}
Loading

0 comments on commit 7fa44b1

Please sign in to comment.