Upvoted because I like experimentation however I still cannot think of a reason to structure react components in this style. Is this more of an exercise to port an idea you like from Vue into React?
I liked the idea of how Vue components combine business logic and styling code in one file using HTML-like wrappers.
As I mentioned in a comment below I realise there is already a number of ways to approach the problem.
I personally didn't find any of the ones that I am aware of being as convenient, so I've created and published this experimental loader to see if it 1. would actually work for React and 2. if someone else finds this concept interesting/convenient.
As I mentioned in a comment below I realise there is already a number of ways to approach the problem. I personally didn't find any of the ones that I am aware of being as convenient, so I've created and published this experimental loader to see if it 1. would actually work for React and 2. if someone else finds this concept interesting/convenient.