react-d3-library / react-d3-library

Open source library for using D3 in React
http://react-d3-library.github.io/
MIT License
1.53k stars 81 forks source link

Unknown props error #51

Open AndrewHenderson opened 7 years ago

AndrewHenderson commented 7 years ago

I'm attempting to load the code borrowed from http://codepen.io/danieljoonlee/pen/jrPoPE in my app and receive the following error:

warning.js:36 Warning: Unknown props `__data__`, `__onmouseover`, `__onmouseout` on <line> tag. Remove these props from the element.

Dependencies:

"dependencies": {
    "d3": "3.5.17",
    "react": "^15.4.1",
    "react-d3-library": "^1.1.7",
    "react-dom": "^15.4.1"
},
DDeme commented 7 years ago

I have the same issue crashing in IE browser.

DDeme commented 7 years ago

It 's only a warning, in lower versions of react it can be overpassed more info on. https://facebook.github.io/react/warnings/unknown-prop.html

D3 generates aditional object properties for DOM elements

Please close

jeff1evesque commented 6 years ago

I am using a more recent version of react, and receiving similar warnings:

  "dependencies": {
    "babel-preset-latest": "^6.24.1",
    "babel-preset-react": "^6.24.1",
    "babel-preset-stage-2": "^6.22.0",
    "core-js": "^2.4.1",
    "promise-polyfill": "^6.0.2",
    "query-string": "^5.0.0",
    "react": "^15.6.1",
    "react-dom": "^15.6.1",
    "react-router-dom": "^4.2.2",
    "react-redux": "^5.0.6",
    "react-bootstrap": "^0.31.3",
    "react-router-bootstrap": "^0.24.4",
    "react-rangeslider": "^2.2.0",
    "redux": "^3.7.2",
    "rearm": "^0.8.1",
    "whatwg-fetch": "^2.0.2",
    "react-d3-library": "^1.1.8"
  }

Has @DDeme's comment that it's only a warning sufficient? Seems like a pretty lazy resolution.