Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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;
```