Skip to content

Tutorial step generates TypeError: children is not a function #120

@jakekara

Description

@jakekara

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions