Trying to wrap my head around components right now and get started using the Meteorhacks Flow-x system of doing things. So I’m trying to figure out how far down the components rabbit-hole I should be going in my projects.
For example let’s say I have a blog:
I’ve got to do a form for the login, make a post, and make a comment. Should I break up form elements each into components? input text box is one, text area is one, radio button is one, etc. So the client/components folders may look something like this:
app
app.forms.textinput
app.forms.textarea
app.forms.radio
app.login.form
app.post.single
app.post.list
app.post.form.create (this uses a couple input boxes from the app.forms.textinput and app.forms.textarea)
app.comment.list
app.comment.single
app.comment.form.create (this uses a just a textarea only)
Or am I breaking up into too many components and forms are simple enough for each to have there own form fields? This is not limited to forms either just components in general. Thanks for guidance!