From c477cd79c84b6d0fa27f4286a9c81826719af0a4 Mon Sep 17 00:00:00 2001 From: Himanshu Pathak Date: Mon, 9 Mar 2020 19:31:38 +0530 Subject: [PATCH] animation plugin moved (#2091) `react-addons-css-transition-group` moved to `react-transition-group` --- content/docs/addons-animation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/docs/addons-animation.md b/content/docs/addons-animation.md index a619af76..f83dd63f 100644 --- a/content/docs/addons-animation.md +++ b/content/docs/addons-animation.md @@ -23,8 +23,8 @@ The [`ReactTransitionGroup`](#low-level-api-reacttransitiongroup) add-on compone **Importing** ```javascript -import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; // ES6 -var ReactCSSTransitionGroup = require('react-addons-css-transition-group'); // ES5 with npm +import ReactCSSTransitionGroup from 'react-transition-group'; // ES6 +var ReactCSSTransitionGroup = require('react-transition-group'); // ES5 with npm ``` ```javascript{31-36} @@ -199,7 +199,7 @@ render() { In the example above, we rendered a list of items into `ReactCSSTransitionGroup`. However, the children of `ReactCSSTransitionGroup` can also be one or zero items. This makes it possible to animate a single element entering or leaving. Similarly, you can animate a new element replacing the current element. For example, we can implement a simple image carousel like this: ```javascript{10} -import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; +import ReactCSSTransitionGroup from 'react-transition-group'; function ImageCarousel(props) { return (