aboutsummaryrefslogtreecommitdiff
path: root/src/shared/store/provider.jsx
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-11-18 22:02:44 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-11-26 11:40:12 +0900
commit44459e39c3526673ac2ac7065c5659e4af5ea7d8 (patch)
treedc726741c537a6bbf2fc8fe0ccac65af9051b8ae /src/shared/store/provider.jsx
parent89c52173ce5ead27c234063c08b1aa1c67298f6d (diff)
use preact
Diffstat (limited to 'src/shared/store/provider.jsx')
-rw-r--r--src/shared/store/provider.jsx13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/shared/store/provider.jsx b/src/shared/store/provider.jsx
index 743f656..fe925aa 100644
--- a/src/shared/store/provider.jsx
+++ b/src/shared/store/provider.jsx
@@ -1,18 +1,15 @@
-import React from 'react';
-import PropTypes from 'prop-types';
+import { h, Component } from 'preact';
-class Provider extends React.PureComponent {
+class Provider extends Component {
getChildContext() {
return { store: this.props.store };
}
render() {
- return React.Children.only(this.props.children);
+ return <div>
+ { this.props.children }
+ </div>;
}
}
-Provider.childContextTypes = {
- store: PropTypes.any,
-};
-
export default Provider;