aboutsummaryrefslogtreecommitdiff
path: root/src/shared/store/provider.jsx
blob: fe925aa76e5e6c72b6f0719309fc11d533514b63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { h, Component } from 'preact';

class Provider extends Component {
  getChildContext() {
    return { store: this.props.store };
  }

  render() {
    return <div>
      { this.props.children }
    </div>;
  }
}

export default Provider;