W01fw00d / cooking-with-amateurs

Cooking Recipes App. Uses Chemistry-UI
0 stars 0 forks source link

Improve Proptypes management #87

Closed W01fw00d closed 2 years ago

W01fw00d commented 2 years ago

If a component is just passing props to another one, its proptypes should make reference to that component proptypes, so that they will update at once when a change is applied.

Create a sort of "chain" with propTypes; every component only can use proptypes from components they directly use.

W01fw00d commented 2 years ago

and of course, avoid using PropTypes.any