UNPKG

@domonda/query-params

Version:

Useful but simple query params manipulator for React.

12 lines (11 loc) 307 B
/** * * QueryParamsContext * */ import React from 'react'; export const QueryParamsContext = React.createContext(null); export const QueryParamsProvider = (props) => { const { history, children } = props; return React.createElement(QueryParamsContext.Provider, { value: history }, children); };