Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Responsive D3 The React Way

Responsive D3 The React Way

Use higher-order components to abstract the nastiness of interacting with the real DOM

John Bartos

March 16, 2016
Tweet

Other Decks in Programming

Transcript

  1. You want to make sweet D3 visualizations that just work™

    on all screen sizes (you also care about doing it properly)
  2. Our HOC gets size exactly as before and passes it

    as props to its child When 'resize' event fires, new props are passed, prompting a rerender