Skip to content

Commit 1357155

Browse files
authored
Add ant design compatibility patch for working with React 19. (#139)
1 parent 4c8f9e0 commit 1357155

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

package-lock.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"private": true,
66
"dependencies": {
77
"@ant-design/icons": "^6.0.0",
8+
"@ant-design/v5-patch-for-react-19": "^1.0.3",
89
"@blockly/theme-dark": "^8.0.1",
910
"@tailwindcss/postcss": "^4.1.10",
1011
"@types/react": "^19.0.2",

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*/
2121
import * as React from 'react';
2222
import * as Antd from 'antd';
23+
import '@ant-design/v5-patch-for-react-19';
24+
2325
import * as Blockly from 'blockly/core';
2426
import {pythonGenerator} from 'blockly/python';
2527

0 commit comments

Comments
 (0)