jmgaya / react-primercss

React ❤️ http://primercss.io
https://jmgaya.github.io/react-primercss/
MIT License
7 stars 0 forks source link

Review how components receive event handlers #7

Closed jmgaya closed 6 years ago

jmgaya commented 6 years ago

Right now, only Button component is able to handle onClick events. Some other components (like, for example, Icon) could receive functions as props for being able to respond properly to changes.

jmgaya commented 6 years ago

Improved by using spread operator in function headers, and passing those spread properties right through.