import React from 'react' ; import { SpringProps , Spring } from './Spring' ; export const Opacity = ( props ) => { const { from = { } , to = { } , ... rest } = props ; from . opacity = 0 ; to . opacity = 1 ; return < Spring from = { from } to = { to } { ... rest } />; } ;