@uirouter/react

WebJar for @uirouter/react

License

License

MIT
Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

uirouter__react
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

@uirouter/react
WebJar for @uirouter/react
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/ui-router/react

Download uirouter__react

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/uirouter__react/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>uirouter__react</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/uirouter__react/
implementation 'org.webjars.npm:uirouter__react:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/uirouter__react/
implementation ("org.webjars.npm:uirouter__react:1.0.3")
'org.webjars.npm:uirouter__react:jar:1.0.3'
<dependency org="org.webjars.npm" name="uirouter__react" rev="1.0.3">
  <artifact name="uirouter__react" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='uirouter__react', version='1.0.3')
)
libraryDependencies += "org.webjars.npm" % "uirouter__react" % "1.0.3"
[org.webjars.npm/uirouter__react "1.0.3"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : uirouter__core jar [6.0.5]
org.webjars.npm : classnames jar [2.2.5,3)
org.webjars.npm : prop-types jar [15.6.1,16)

Project Modules

There are no modules declared in this project.

UI-Router-React

Greenkeeper badge

UI-Router provides extremely flexible, state based routing to the React ecosystem.

Routing frameworks for SPAs update the browser's URL as the user navigates through the app. Conversely, this allows changes to the browser's URL to drive navigation through the app, thus allowing the user to create a bookmark to a location deep within the SPA.

UI-Router applications are modeled as a hierarchical tree of states. UI-Router provides a state machine to manage the transitions between those application states in a transaction-like manner.

Docs & Resources

Getting started

The UI-Router package is distributed using npm, the node package manager.

yarn add @uirouter/react

Import UIRouter into your project, define some states and you're good to go!

import React from 'react';
import ReactDOM from 'react-dom';
import { UIRouter, UIView, pushStateLocationPlugin } from '@uirouter/react';
import Home from './components/Home';

// define your states
const states = [
  {
    name: 'home',
    url: '/home',
    component: Home,
  },
];

// select your plugins
const plugins = [pushStateLocationPlugin];

ReactDOM.render(
  <UIRouter plugins={plugins} states={states}>
    <UIView />
  </UIRouter>,
  document.getElementById('root'),
);
org.webjars.npm

UI-Router

State-based routing for single page web applications

Versions

Version
1.0.3