SearchkitProvider
A react
component to provide a SearchkitManager instance to all descendant react components
Usage
import {
SearchkitManager,
SearchkitProvider
} from "searchkit"
const searchkit = new SearchkitManager("/")
const App = ()=> (
<SearchkitProvider searchkit={searchkit}>
//... app with searchkit components
</SearchkitProvider>
)
ReactDOM.render(<App/>, document.getElementById("app"))
Note
SearchkitProvider
will add theSearchkitManager
to the context and is automatically read by components extending SearchkitComponent