¿Cómo puedo refactorizar este nodo de reacción a TS: {({ value }) => this.props.children(value)} `?
Dice que ningún componente del nodo de reacción es invocable.
Aquí está la función completa:
render() { return ( <Animate start={() => ({ value: this.props.valueStart, })} update={() => ({ value: [ this.state.isAnimated ? this.props.valueEnd : this.props.valueStart, ], timing: { duration: this.props.duration * 1000, ease: this.props.easingFunction, }, })} > {({ value }) => this.props.children(value)} </Animate> ); }Revisé esta pregunta pero no me ayudó, probablemente porque estoy usando mecanografiado: