Skip to content

Conversation

@Alex-Werner
Copy link

This is a small PR that add the ability for wildcards.

See below for usage

import React, {Component} from "react";

export default class Router extends Component {
    render() {
        return (
            <blessed-box>
                <blessed-box
                    width="75%"
                    height="100%"
                    border={{ type: "line" }}
                    style={{ border: { fg: "blue" } }}>
                    <Route path="*">
                        <blessed-box>Base wildcard.</blessed-box>
                    </Route>
                    <Route path="/">
                        <blessed-box>This is the default ... route.</blessed-box>
                    </Route>
                    <Route path="/dashboard">
                        <DashboardPage />
                    </Route>
                    <Route path="/nodes/*">
                        <blessed-box>This is the node route.</blessed-box>
                    </Route>
                </blessed-box>
            </blessed-box>
        );
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant