How to use webiny-react-router - 2 common examples

To help you get started, we’ve selected a few webiny-react-router examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webiny / webiny-js / packages / webiny-app / src / router / index.js View on Github external
// @flow
import { Router } from "webiny-react-router";
export const router = new Router();
export { default as Link } from "./Link";

export {
    RouterComponent as Router,
    renderMiddleware,
    resolveMiddleware
} from "webiny-react-router";
github webiny / webiny-js / packages / webiny-app / src / app / index.js View on Github external
constructor() {
        this.configurators = [];
        this.modules = new ModuleLoader();
        this.services = new ServiceManager();
        this.router = new Router();
        this.security = new Security();
        this.graphql = new GraphQLClient();
        this.initialized = false;
        this.configLoader = () => Promise.resolve({});

        registerDefaultModules(this);
    }

webiny-react-router

A pluginable React router.

MIT
Latest version published 6 years ago

Package Health Score

60 / 100
Full package analysis

Popular webiny-react-router functions

Similar packages