Skip to content

Instantly share code, notes, and snippets.

View alieslamifard's full-sized avatar
🏠
Working from home

Ali Eslamifard alieslamifard

🏠
Working from home
  • Homeday
View GitHub Profile
@alieslamifard
alieslamifard / D3C.js
Created August 1, 2018 07:20
sample component for d3js with react-faux-dom
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import cs from 'classnames';
import * as d3 from 'd3';
import ReactFauxDOM from 'react-faux-dom';
import s from './D3C.scss';
class D3C extends React.Component {
static propTypes = {