Skip to content

Commit bf4d092

Browse files
committed
update codesandbox
1 parent 442c140 commit bf4d092

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

example/index.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
import * as ReactDOM from 'react-dom';
2-
import * as React from 'react';
3-
import { Demo } from './Demo.stories';
4-
import { DirectionX } from './DirectionX.stories';
1+
import * as ReactDOM from "react-dom";
2+
import * as React from "react";
3+
import { Demo } from "./Demo.stories";
4+
import { DirectionX } from "./DirectionX.stories";
5+
// import { UseScrollWatch } from "./UseScrollWatch.stories";
6+
import { Body } from "./Body.stories";
57
export default function App() {
68
return (
79
<div className="App">
8-
<h1>react-smooth-scroll-hook</h1>
9-
<h2>Demo.tsx</h2>
10+
<h1>useSmoothScroll</h1>
11+
<h2>Demo.stories.tsx</h2>
1012
<Demo />
11-
<h2>DirectionX.tsx</h2>
13+
<h2>Direction.stories.tsx</h2>
1214
<DirectionX />
15+
<h2>Body.stories.tsx</h2>
16+
<Body />
1317
</div>
1418
);
1519
}
1620

17-
ReactDOM.render(<App />, document.getElementById('root'));
21+
ReactDOM.render(<App />, document.getElementById("root"));

example/package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "example",
2+
"name": "usesmoothscroll",
33
"version": "1.0.0",
44
"main": "index.js",
55
"license": "MIT",
@@ -11,11 +11,7 @@
1111
"react": "16.13.1",
1212
"react-app-polyfill": "^1.0.0",
1313
"react-dom": "16.13.1",
14-
"react-smooth-scroll-hook": "1.3.0"
15-
},
16-
"alias": {
17-
"react": "../node_modules/react",
18-
"react-dom": "../node_modules/react-dom"
14+
"react-smooth-scroll-hook": "1.3.3"
1915
},
2016
"devDependencies": {
2117
"@types/react": "^16.9.11",
@@ -24,5 +20,7 @@
2420
"@babel/core": "7.2.0",
2521
"parcel-bundler": "^1.6.1",
2622
"@types/node": "14.6.0"
27-
}
28-
}
23+
},
24+
"keywords": [],
25+
"description": ""
26+
}

0 commit comments

Comments
 (0)