react-compound-slider icon indicating copy to clipboard operation
react-compound-slider copied to clipboard

Tutorial step generates TypeError: children is not a function

Open jakekara opened this issue 5 years ago • 0 comments

The tutorial step where you use an array of tick values for the first time fails.

https://sghall.github.io/react-compound-slider/#/getting-started/tutorial

On the line: <Ticks values={[0, 25, 50, 75, 100]}> // pass in an array of values

It results in : TypeError: children is not a function

Removing the // pass in an array of values fixes the problem.

Thanks for the great tutorial! Very handy to have all of the code for each step, instead of just the changes, for easy copying and pasting. (It might be nice to highlight the diffs from each step, now that I'm thinking about it.)

jakekara avatar Jul 15 '20 14:07 jakekara