Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dataSet in react component #94

Open
lilworks opened this issue Oct 22, 2019 · 0 comments
Open

dataSet in react component #94

lilworks opened this issue Oct 22, 2019 · 0 comments

Comments

@lilworks
Copy link

I'm completly noob in react. I'm trying to use a react object to set the items

var Items = createReactClass({
  render: function() {
    return new vis.DataSet();
  }
})

After in my ReactDOM.render
ReactDOM.render(<Timeline options={options} items=<Items/> />, document.getElementById('timeline'));

I'm getting this error.

Warning: Failed prop type: Invalid prop `items` of type `object` supplied to `Timeline`, expected `array`.
    in Timeline

How Can I pass my items to the ReactDOM.render()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant