Open makstr opened 8 years ago
I think this is a big topic we should discuss. So, I defer this until we ship module system.
But, If it's the composers directory, we should only place the composer function only. May be these should go into the library
directory.
@arunoda so I have been thinking about the container components approach and realized that sometimes the containers could be abstracted to more universal composer functions and later combined in a more 'on demand' manner.
Take a look at the _colors module
I have the following structure:
I also have the data rendering / functional components:
and instead of using containers I have a abstract list of composers function:
/_colors/composers/colors/edit.jsx:
/_colors/components/colors/edit.jsx:
Of course if you want ready to use container components nothing is stopping you and they will be even simpler to write given a set of well designed composer functions.
/_colors/containers/colors/edit.jsx:
Benefits?
What do you think?