React-Motion: TransitionSpring Basics

Share this video with your friends

Send Tweet

In this lesson we'll look at how to animate the adding and removing of components using React-Motion's TransitionSpring and how it differs from a standard Spring component.

Matt
Matt
~ 9 years ago

Just wondering why do you write:

willLeave = () => {
    ...
}

rather than

willLeave() {
    ...
}
Anthony Pilger
Anthony Pilger
~ 9 years ago

this for auto binding, some more details can be found here: https://facebook.github.io/react/blog/2015/01/27/react-v0.13.0-beta-1.html#autobinding

Sandeep S Kumar
Sandeep S Kumar
~ 8 years ago

The JSbin example is not working.