Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Latest commit

 

History

History
26 lines (19 loc) · 732 Bytes

CHANGELOG.md

File metadata and controls

26 lines (19 loc) · 732 Bytes

Upgrade from 2.x to 3.x

Breaking changes:

  • Fix typo in trasition-wrapper -> transition-wrapper. You have to change this manually in your CSS if you are using 2.0.

  • 3.0 now use ES6 import:

      import PageTransition from 'react-router-page-transition';
    

    old require statement is no longer work in 3.x

      const PageTransition = require('react-router-page-transition').default(React, ReactDom);
    

New feature:

  • PageTransition can now be used to wrap Redux connected components using data-transition-id property. Example:
<PageTransition>
  {isLoggedIn() ?
    <AdminPanel data-transition-id="admin-page" ... />
    :
    <Login data-transition-id="login-page" ... />
  }
</PageTransition>