This repository has been archived on 2020-04-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Vim-Vixen/src/shared/store/provider.jsx
Shin'ya Ueoka 44459e39c3 use preact
2017-11-26 11:40:12 +09:00

15 lines
246 B
JavaScript

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;