I don't understand. Isn't this approach tying my styling code to the specific framework? What happens the day that React needs to be replaced by another framework in an existing app? I will have to rewrite both my logic and my styles?
But you can do those best practices with PLAIN, good old css. If one class is repeated for all buttons and it spoils your component aesthetics, just style the default button HTML element!?
It was a joke because yarn installs your dependencies in parallel instead of sync(one by one) and creates a lock file which keeps track of your sub dependencies, so you will not get the same sub dependencies all over, making your node_modules a lot bigger(not that its small with yarn lol).Anyway hope this helps :)
This is not a game changer. Actually this is a pretty useless approach which can easily be obtained with css. Any experienced css coder will tell you so.
So many great concepts shared in one video. I didn't think my foundations in React would be questioned but also solidified in 30 minutes.
Drink a shot every time he says "right"
never got drunk so fast
Great video, watching this convinced me to embrace styled-components.
Containers = How things work
Components = How things look
which have same idea about UIView and UIViewController
I don't understand. Isn't this approach tying my styling code to the specific framework? What happens the day that React needs to be replaced by another framework in an existing app? I will have to rewrite both my logic and my styles?
sold!
I like the thinking behind this. 🚀
Right? Right? Wrong! You can't tell the customer that all buttons should look alike because of some cool concept.
You do know that you can create multiple styles fot buttons right? And then just use them separately.
But you can do those best practices with PLAIN, good old css. If one class is repeated for all buttons and it spoils your component aesthetics, just style the default button HTML element!?
Sold around 20:00
Max really inspired by his work
Styled Components seems to be great. Right now I create a css and and js file for every component.
might be a silly question, but does style-components work well with boot-strap?
You guys nailed it!! Awesome.
Fantastic
whats wrong with "npm install styled-components" ?
It was a joke because yarn installs your dependencies in parallel instead of sync(one by one) and creates a lock file which keeps track of your sub dependencies, so you will not get the same sub dependencies all over, making your node_modules a lot bigger(not that its small with yarn lol).Anyway hope this helps :)
npm creates a package-lock.json file now. Not sure about the parallelism though.
Pretty bad overloading of the word "container". Containers = things that you can put other things inside of. Words mean things.
At some point I thought about what a fantastic job did the creator of Vue.
styled-components FTW!
Container is also a component. You should have said, Containers and Views. But that's just my option.
Motivated
really great
Right? Counter, anyone?
Game changer!
Right.
09:00 wat?
I'd rather go with SCSS, Sass, or Less rather than carrying the load of Javascript.
Nice talk,... right?
Years ago, a bad coder had css, js and html all in a single file.
always repeating right, drives me crazy
Right! :)) ... but interesting
This is not a game changer. Actually this is a pretty useless approach which can easily be obtained with css. Any experienced css coder will tell you so.
Right. What's your approach then?
I just told you. Css. Using scss will ofc make your life easier
lol right now 29K starts in github :P