Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
React Developer Roadmap | 17,849 | 4 months ago | 35 | other | JavaScript | |||||
Roadmap to becoming a React developer | ||||||||||
React Native Router Flux | 9,013 | 3,478 | 88 | 6 months ago | 273 | March 26, 2021 | 336 | mit | JavaScript | |
The first declarative React Native router | ||||||||||
React Pxq | 7,226 | a year ago | 15 | mit | JavaScript | |||||
一个 react + redux 的完整项目 和 个人总结 | ||||||||||
React Router Tutorial | 5,564 | 4 years ago | 73 | JavaScript | ||||||
Wouter | 5,156 | 7 | 15 | 3 days ago | 34 | November 09, 2021 | 15 | JavaScript | ||
🥢 A minimalist-friendly ~1.5KB routing for React and Preact. Nothing else but HOOKS. | ||||||||||
Router | 4,739 | 3 | 5 | 16 days ago | 127 | January 31, 2022 | 39 | mit | TypeScript | |
🤖 Type-safe router w/ built-in caching & URL state management for JS/TS, React, Preact, Solid, Vue, Svelte and Angular | ||||||||||
Connected React Router | 4,731 | 2,066 | 620 | 3 months ago | 51 | July 11, 2022 | 175 | mit | JavaScript | |
A Redux binding for React Router v4 | ||||||||||
After.js | 4,103 | 44 | 5 | a month ago | 34 | November 01, 2021 | 13 | mit | TypeScript | |
Next.js-like framework for server-rendered React apps built with React Router | ||||||||||
Reactjs101 | 3,840 | 2 years ago | 58 | other | JavaScript | |||||
從零開始學 ReactJS(ReactJS 101)是一本希望讓初學者一看就懂的 React 中文入門教學書,由淺入深學習 ReactJS 生態系 (Flux, Redux, React Router, ImmutableJS, React Native, Relay/GraphQL etc.)。 | ||||||||||
Blog | 3,329 | 4 years ago | 65 | mit | JavaScript | |||||
:dog: :clap: :star2: Welcome to star |
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.
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'),
);