Show HN: ReactCSS – Inline Styles with Support for React, Redux and React Native
21–30 of 48 posts
Re: Show HN: ReactCSS – Inline Styles with Support for React, Redux and React Native
#22This is slightly off-topic, but... this simple website is made of a single, static page without any kind of user interaction. Why does it load a 2.8 Mb javascript, and why is javascript needed to render the page at all?
Re: Show HN: ReactCSS – Inline Styles with Support for React, Redux and React Native
#23This is very similar to https://github.com/Khan/aphrodite and https://github.com/rtsao/react-stylematic
Re: Show HN: ReactCSS – Inline Styles with Support for React, Redux and React Native
#24This is very similar to https://github.com/Khan/aphrodite and https://github.com/rtsao/react-stylematic
vs
Re: Show HN: ReactCSS – Inline Styles with Support for React, Redux and React Native
#25This is slightly off-topic, but... this simple website is made of a single, static page without any kind of user interaction. Why does it load a 2.8 Mb javascript, and why is javascript needed to render the page at all?
The author either didn't do the best choice in writing his page, or has great plans for it.
Re: Show HN: ReactCSS – Inline Styles with Support for React, Redux and React Native
#26What happened to the separation of concerns between CSS and JS? In my experience most developers dont want anything to do with CSS. They want a designer who can code to do that.
I personally like this way better, easier to find when need to fix something.
Re: Show HN: ReactCSS – Inline Styles with Support for React, Redux and React Native
#27Is there any benefit to using this over CSS Modules in React? https://github.com/gajus/react-css-modules
React CSS Modules does not allow you to use props or state to style your component. Say you wanted to use a button you could map the color prop directly to CSS.
Re: Show HN: ReactCSS – Inline Styles with Support for React, Redux and React Native
#28This is slightly off-topic, but... this simple website is made of a single, static page without any kind of user interaction. Why does it load a 2.8 Mb javascript, and why is javascript needed to render the page at all?
React. If it was a pretty complex and dynamic app it would be just a bit bigger. The author either didn't do the best choice in writing his page, or has great plans for it.
Re: Show HN: ReactCSS – Inline Styles with Support for React, Redux and React Native
#29This is slightly off-topic, but... this simple website is made of a single, static page without any kind of user interaction. Why does it load a 2.8 Mb javascript, and why is javascript needed to render the page at all?
I only see a ~800kb bundle.js, which could be smaller if minified, I think, but nothing strangely big.
Re: Show HN: ReactCSS – Inline Styles with Support for React, Redux and React Native
#30This is slightly off-topic, but... this simple website is made of a single, static page without any kind of user interaction. Why does it load a 2.8 Mb javascript, and why is javascript needed to render the page at all?
I only see a ~800kb bundle.js, which could be smaller if minified, I think, but nothing strangely big.
Even if compressed and minified, that's still a huge amount of JS statements that the interpreter has to go through.
I'm getting about 2 seconds to DomContentLoaded on my iMac and a reasonably fast cable connection. Four seconds to visible content on my Nexus 5X on same connection.
This is the kind of crap that makes the web feel so lame and clunky on mobile (and on desktops too even sometimes).