import React from 'react'; import { Animation } from '@douyinfe/semi-animation-react'; import { GradientPinkRed as Gradient } from '@vx/gradient'; import * as easings from 'd3-ease'; export default class App extends React.Component { state = { offset: 0 }; path = React.createRef(); componentDidMount() { this.setState({ offset: this.path.current.getTotalLength() }); } render() { const { offset } = this.state; return (
this.forceUpdate()} > {props => ( )}
); } }