Skip to content

CosmaTrix/react-spring-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-spring + Next.js

Simple Next.js app that uses an experimental version or react-spring that allows SSR.

Installation

Using Yarn

yarn install
yarn dev

Or with NPM

npm run install
npm run dev

Notes

Note that react-spring is installed using yarn add https://github.com/CosmaTrix/react-spring rather then yarn add react-spring. This is needed in order to install the experimental version of react-spring that is meant to work server side.

Limitations

SSR doesn't currently work when:

  1. the immediate prop is used

Challenges

Keyframes without from and async state might be challenging, as it could be extremelly difficult to run the async function to completition to get the final state (hence the immediate style to render).

React hooks

Due to the nature of hooks, should work out of the box. Further investigation is needed.

About

Next.js + react-spring (SSR)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published