Simple Next.js app that uses an experimental version or react-spring that allows SSR.
Using Yarn
yarn install
yarn devOr with NPM
npm run install
npm run devNote 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.
SSR doesn't currently work when:
- the
immediateprop is used
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).
Due to the nature of hooks, should work out of the box. Further investigation is needed.