# react-route-transition-group

> 基于react的路由切换左右滑动动画

Latest version **1.0.1** (published 2022-01-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-route-transition-group
pnpm add react-route-transition-group
yarn add react-route-transition-group
bun add react-route-transition-group
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-01-16 |
| First published | 2022-01-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 89.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Hanshaoshuai |
| Maintainers | hanshaoshuai |
| Keywords | ReactRouteTransitionGroup, ReactTransitionGroup, react-transition-group, transition-group, transition, group, react, route-switching-animation, route-animation, switching-animation, routeSwitchingAnimation, react-route-switching-animation, reactRrouteAnimation, react-route, routeAnimation, react-rroute-animation |

## Links

- npm: https://www.npmjs.com/package/react-route-transition-group
- Repository: https://github.com/Hanshaoshuai/MyDictionary.git#master
- Homepage: https://github.com/Hanshaoshuai/MyDictionary/tree/master/rollup/reactTransitionGroup
- Issues: https://github.com/Hanshaoshuai/MyDictionary/issues
- npm.io page: https://npm.io/package/react-route-transition-group

## Dependencies (2)

- [@emotion/core](https://npm.io/package/@emotion/core.md) ^11.0.0
- [@emotion/react](https://npm.io/package/@emotion/react.md) ^11.7.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-01-16
- 1.0.0 — 2022-01-16

## README

### 描述

基于 react 的路由切换左右滑动动画

### 安装

```javascript
npm install react-route-transition-group --save
```

### 引入方式

```javascript
import { ReactRouteTransitionGroup } from 'react-route-transition-group'; // 项目没有用TS，可以这样引入;
const { ReactRouteTransitionGroup } = require('react-route-transition-group'); // 项目中使用了TS，可以这样引入;
```

#### 使用方法

```javascript
return (
  <ReactRouteTransitionGroup
    path={route.path} // 指的是pathname，格式为如：'/login'
    component={route.component} // route.component 是匹配到的组件；
  />
);
```

---
_Source: https://npm.io/package/react-route-transition-group · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
