Closed samjam48 closed 4 years ago
Generally, a style object is always declared after the component rather than before it. Not sure why but it's just a thing that people do.
I guess it's nice to just read the important stuff about the code and then look at style if you need to.
I might be completely wrong on this but every piece of React I've used so far has been in that order.
Generally, a style object is always declared after the component rather than before it. Not sure why but it's just a thing that people do.
I guess it's nice to just read the important stuff about the code and then look at style if you need to.
I might be completely wrong on this but every piece of React I've used so far has been in that order.