4 ms·
We are still separating HTML/JS/CSS. React widget logic is on their own methods, PUB/SUB logic is in flux. Template logic is in one isolated method in JSX. CSS
by sametmax 10y ago
We are still separating HTML/JS/CSS.
React widget logic is on their own methods, PUB/SUB logic is in flux. Template logic is in one isolated method in JSX. CSS is not in there.
Yes, the widget logic and template are in the same files, but the code is strongly separated.
React encourage to group related CSS/JS/HTML together, to make a stand alone component. Yet CSS/JS/HTML are distinct in the component. I think it's a nice solution.