When we import styles right in less/sass files (using @import syntax), as a result we have styles compiled in a separate css file, whereas importing styles right in the js file puts them right in the plain form in the <head>
tag of the app.
-
Does is mean that whenever a component is destroyed, the inline style is removed from the page, or it appears when the component is created and stays there until page reload, right?
-
The example in simple-todos imports the styles in a separates file in client/main.less. I find it more clean to store related styles next to a component, deep in the files hierarchy. Should I create a separate importing flow specifically for .less files? Like
main.less < startup.less < layout.less < component.less
or in this case it is better to load the .less files right in the js then?