Skip to content

Commit 9dd5aef

Browse files
committed
update imports for ParallaxScroller in examples
1 parent 4b47c5c commit 9dd5aef

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/parallax-example/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import { ParallaxExample } from 'components';
4+
import { ParallaxScroller } from 'react-scroll-parallax';
45

5-
import 'react-scroll-parallax/libs/ParallaxScrollListener';
6+
ParallaxScroller.init();
67

78
const root = document.getElementById('root');
89

examples/parallax-test/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import { ParallaxTest } from 'components';
4+
import { ParallaxScroller } from 'react-scroll-parallax';
45

5-
import 'react-scroll-parallax/libs/ParallaxScrollListener';
6+
ParallaxScroller.init();
67

78
const root = document.getElementById('root');
89

0 commit comments

Comments
 (0)