d3plus / d3plus-react

React components for d3plus visualizations.
MIT License
31 stars 6 forks source link

fixes defaultProps for children of Viz class #21 #22

Closed jspeis closed 6 years ago

jspeis commented 6 years ago

Fixes the way defaultProps for children of Viz class get set, fixing #21

Description

Instead of overwriting the defaultProp, this uses Object.assign to "inherit" the parent Viz class's defaultProps.

Types of changes

Notes

The spread operator ... doesn't seem to work with the current buble configuration for this package?