@department/react-query-next

0.2.0-alpha.de13a18b • Public • Published

React Querystring

Use the query string as a simple react component.

Using prop-type style validation and casting of the values it looks a little bit like this:

<Query size={number()}>
  {({ size = 10 }) => <span>Size: {size}</span>)}
</Query>

API

Available Query Types

  • bool()
  • number()
  • integer()
  • oneOf(...options)
  • arrayOf(type)

Readme

Keywords

none

Package Sidebar

Install

npm i @department/react-query-next

Weekly Downloads

0

Version

0.2.0-alpha.de13a18b

License

ISC

Last publish

Collaborators

  • slaskis