-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f940f9d
commit 82982c7
Showing
2 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
import React, { Component } from 'react'; | ||
// import PropTypes from 'prop-types'; | ||
import { ParallaxProvider } from 'react-scroll-parallax'; | ||
import { ParallaxTest } from 'components'; | ||
|
||
export default class App extends Component { | ||
// this just serves to test unmount/re-mount ParallaxProvider | ||
state = { | ||
mount: true, | ||
}; | ||
|
||
render() { | ||
return ( | ||
<ParallaxProvider> | ||
<ParallaxTest /> | ||
</ParallaxProvider> | ||
<main> | ||
{this.state.mount ? ( | ||
<ParallaxProvider> | ||
<ParallaxTest /> | ||
</ParallaxProvider> | ||
) : ( | ||
<div /> | ||
)} | ||
</main> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters