javascript - _reactD3Components2.default is undefined -


i trying integrate d3 react making graphs. far have installed d3 , react-d3-components folder. versions got installed "d3": "^4.10.0" , "react-d3-components": "^0.6.6". importing these dependencies code, doing this-

import react 'react'; import reactdom 'react-dom' ; import $ 'jquery' ; import reactd3 'react-d3-components';  import * d3 'd3'; var axios=require('axios'); //var d3=require('d3'); var barchart=reactd3.barchart;  class dataapp extends react.component{    componentdidmount(){     this.loaddata();   }    loaddata(){     axios({       method:'get',       url:'https://www.alphavantage.co/query?function=time_series_monthly&symbol=spy&interval=15min&outputsize=full&apikey=2qel3wc4kitibisr'     }).then(function(response){       document.getelementbyid('data-div').innerhtml=json.stringify(response);     })   }    render(){     return(       <div id="data-div"></div>       )   } }  reactdom.render(<dataapp/>,document.getelementbyid('container')); 

by doing this, error

typeerror: _reactd3components2.default undefined

what wrong here?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -