1.4.6 • Published 4 years ago

react-fetch-router v1.4.6

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

react-fetch-router

Routing library for React. Works with JSON AJAX responses (native fetch object). The router uses page types (derived from the response), rather than URL paths.

Install

Install with npm:

$ npm i --save react-fetch-router

For the client side, use polyfills for fetch and Promise:

import 'react-fetch-router/polyfills';

Library components and functions

ComponentDescription
<Router/>The common low-level interface for all router components.
<Route/>Basic component for render some UI when a request page type matches the route page type path.
<RouteDefault/>The default component for render some UI when the type of the request page does not correspond to any of the above components of the <Route/>.
<Link/>Provides declarative, accessible navigation around your application.
<Form/>Submitting form data to your application.
RouterContextGlobal context. See the React Context documentation.
constantsLibrary constants for types and queries.
queryA wrapper for the native fetch object.
createReduxReducerIntegration with the redux library. Creates a new reducer. As arguments, the function accepts current store object, context, and hook function for redirection.
createRouterActionCreate custom router action.
createClientContext(options = {})Creates a value for the client side of RouterContext object.
createServerContext(options = {})Creates a value for the server side of RouterContext object.

Documentation and full description will appear later. Coming soon... Maybe :)

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago