(props: Props)
| 53 | }; |
| 54 | |
| 55 | constructor(props: Props) { |
| 56 | super(props); |
| 57 | const elements = React.Children.toArray(props.children); |
| 58 | |
| 59 | this.state = { |
| 60 | elements, |
| 61 | currentEl: elements[0], |
| 62 | currentWordIndex: 0, |
| 63 | wordCount: 0, |
| 64 | currentInterval: Array.isArray(props.interval) |
| 65 | ? props.interval[0] |
| 66 | : props.interval, |
| 67 | }; |
| 68 | } |
| 69 | |
| 70 | componentDidMount(): void { |
| 71 | // Starts animation |
nothing calls this directly
no outgoing calls
no test coverage detected