Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

app.js:7851Uncaught TypeError: Cannot read property 'select' of undefined #63

Closed
aleksandrenko opened this issue Jul 21, 2016 · 0 comments

Comments

@aleksandrenko
Copy link

aleksandrenko commented Jul 21, 2016

import './style.less';

import React from 'react';

import d3 from 'd3';
import ReactFauxDOM from 'react-faux-dom';

const Component = React.createClass({
  render() {
    var list = ReactFauxDOM.createElement('ul');

    d3.select(list)
        .selectAll('li')
        .data([1,2,3])
        .enter()
        .append('li')
        .text((d) => d);

    return list.toReact();
  }
});

export default Component;

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

No branches or pull requests

1 participant