How to use the @react-spring/ function in @react-spring/shared

To help you get started, we’ve selected a few @react-spring/shared examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-spring / react-spring / packages / animated / src / AnimatedString.ts View on Github external
static create(from: T, to: T | null = from): AnimatedValue {
    if (is.str(from) && is.str(to)) {
      return new AnimatedString(from, to) as any
    throw TypeError('Expected "from" and "to" to be strings')


Globals and shared modules

Latest version published 11 months ago

Package Health Score

90 / 100
Full package analysis