Skip to content

Commit

Permalink
fix: correct React 18 integration
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed May 1, 2022
1 parent 3b75452 commit af8e23e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .size.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[
{
"name": "dist/es2015/index.js",
"passed": false,
"passed": true,
"size": 2889
},
{
"name": "dist/es2015/sidecar.js",
"passed": false,
"passed": true,
"size": 2373
},
{
"name": "dist/es2015/UI.js",
"passed": false,
"passed": true,
"size": 631
}
]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"author": "Anton Korzunov <thekashey@gmail.com>",
"license": "MIT",
"devDependencies": {
"@types/react": "^18.0.8",
"@babel/core": "^7.17.9",
"@size-limit/preset-small-lib": "^2.1.6",
"@storybook/react": "^6.4.22",
Expand Down
2 changes: 1 addition & 1 deletion sidecar/sidecar.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';

declare var sidecar: React.SFC;
declare let sidecar: React.FC;

export default sidecar;

0 comments on commit af8e23e

Please sign in to comment.