Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rikschennink/react-contextual-router
📱Render components based on user context
https://github.com/rikschennink/react-contextual-router
context javascript media-queries plugin react router
Last synced: 3 months ago
JSON representation
📱Render components based on user context
- Host: GitHub
- URL: https://github.com/rikschennink/react-contextual-router
- Owner: rikschennink
- Created: 2016-12-27T07:32:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T07:55:43.000Z (about 7 years ago)
- Last Synced: 2024-09-15T05:50:20.940Z (4 months ago)
- Topics: context, javascript, media-queries, plugin, react, router
- Language: JavaScript
- Homepage:
- Size: 49.8 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Contextual Router
React Contextual Router is a contextual routing library for React based on [Conditioner](https://github.com/rikschennink/conditioner).
Render components based on user context.
## Installation
`npm install react-contextual-router --save`
## Usage
```jsx
import React, { Component } from 'react';
import { Context, ContextRouter } from 'react-contextual-router';class FallbackComponent extends Component {
render() {
return Fallback;
}
}class App extends Component {
render() {
return (
Hello
World
);
}
}export default App;
```