Skip to content

Instantly share code, notes, and snippets.

@zenius
Last active April 22, 2019 13:38
Show Gist options
  • Save zenius/9c0b1969fe32d4739075e6708c99e397 to your computer and use it in GitHub Desktop.
Save zenius/9c0b1969fe32d4739075e6708c99e397 to your computer and use it in GitHub Desktop.
1. Push logic upwards / Keep it dumb - it(refers to Reusable Component)
2. Allows extra props to be passed into the component.
<!--
Software development is an art and it is not all about writing code, it is all about writing good code.
As I love to say software development is not about getting to the end goal, it is a journey and getting to that
understanding makes life more interesting
as you strive to not only get to the end but also understand everything that
will lead you to the end of your goal. Happy Coding!
-->
Reusable Components Link: https://hackernoon.com/the-three-types-of-reusable-react-components-37a6bf7c2d69
https://egghead.io/lessons/react-create-a-simple-reusable-react-component
https://flaviocopes.com/react-example-counter/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment