One of my main concern when coding is about writing small, simple and reusable components. Since there is a lot of design pattern. I don't know if I'm doing this right.
I will usually have a component in the Layout folder that is responsible of storing simple logic, or passing down data to smaller components in a specific part of my UI.
Here is an example from this repo:
https://github.com/firsi/chatty/blob/master/src/components/layout/MessagesBox.js manages
@stvnyung , Do you think this is the way to do it? How can I do this better? Is there anything else I can do for reusability?
One of my main concern when coding is about writing small, simple and reusable components. Since there is a lot of design pattern. I don't know if I'm doing this right.
I will usually have a component in the Layout folder that is responsible of storing simple logic, or passing down data to smaller components in a specific part of my UI.
Here is an example from this repo:
https://github.com/firsi/chatty/blob/master/src/components/layout/MessagesBox.js manages
@stvnyung , Do you think this is the way to do it? How can I do this better? Is there anything else I can do for reusability?