@uirouter/react

WebJar for @uirouter/react

Лицензия

Лицензия

MIT
Категории

Категории

React Взаимодействие с пользователем Веб-фреймворки
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

uirouter__react
Последняя версия

Последняя версия

1.0.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

@uirouter/react
WebJar for @uirouter/react
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

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

Скачать uirouter__react

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
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)

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0.3