Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
clessg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
55 ms
·
601.
▲
Intro to Functional Reactive Programming with Cycle.js
(youtube.com)
3 points
by
clessg
11y ago
|
0 comments
602.
▲
What We Learned from React Europe
(sc5.io)
1 points
by
clessg
11y ago
|
0 comments
603.
▲
Atomic OOBEMITSCSS
(sitepoint.com)
1 points
by
clessg
11y ago
|
0 comments
604.
▲
by
clessg
11y ago
Right, for sure. Template literals are not a good replacement for JSX.
605.
▲
Joseph Savona – Relay: An Application Framework for React at React-Europe 2015
(youtube.com)
2 points
by
clessg
11y ago
|
0 comments
606.
▲
Ryan Florence – Don't Rewrite, React at React-Europe 2015
(youtube.com)
1 points
by
clessg
11y ago
|
0 comments
607.
▲
by
clessg
11y ago
You could probably use a tagged template literal that would return an object representation of the given string. Tagged template literals don't have to return strings; jsx`<Todos items=${someObject}>` could return an Element obje
608.
▲
Confessions of a Web Developer XV
(davidwalsh.name)
2 points
by
clessg
11y ago
|
0 comments
609.
▲
by
clessg
11y ago
Was about to panic - what did sebmarkbage blow up this time?
610.
▲
Cloverfield: Next generation JavaScript boilerplate scaffolding tool
(github.com)
1 points
by
clessg
11y ago
|
0 comments
611.
▲
Computer Science Is Not a Science: It’s a Life Skill
(medium.com)
1 points
by
clessg
11y ago
|
0 comments
612.
▲
React on ES6+
(babeljs.io)
260 points
by
clessg
11y ago
|
93 comments
613.
▲
Turbine: Relay-Like REST-Friendly Immutable-Based React Data Library
(medium.com)
1 points
by
clessg
11y ago
|
0 comments
614.
▲
Inline Styles: themes, media queries, contexts, and when it's best to use CSS
(youtube.com)
1 points
by
clessg
11y ago
|
0 comments
615.
▲
Why Invest in Tools?
(medium.com)
125 points
by
clessg
11y ago
|
40 comments
616.
▲
by
clessg
11y ago
Yeah, if you go the inline styles route, the "cascading" and "sheets" part disappear (to some extent, anyway - you still need some global styles). This isn't a bad thing, though. Good CSS architectures usually avoid
617.
▲
by
clessg
11y ago
Are you able to elaborate on what practical issues you ran into?
618.
▲
by
clessg
11y ago
As a Vim user, I wonder, is Emacs superior in any way for non-lispy languages? Say JavaScript?
619.
▲
by
clessg
11y ago
Of course, anybody is able to manage a problem, but our jobs as engineers should be to fix the problem. And indeed, there is a lot that is problematic about CSS, just as there is a lot that is problematic about writing concurrent code
620.
▲
by
clessg
11y ago
Component-orientation and both exist to mend the problems of global CSS. If you use BEM in React you will usually have a one-to-one relationship between BEM component classes and React components. RaisedButton component has a .RaisedButton
621.
▲
by
clessg
11y ago
Right. So long as you follow sound architectural practices and be careful to not override global selectors, you will achieve most of the benefits of inline styles. https://github.com/postcss/postcss-bem-linter is a god
622.
▲
by
clessg
11y ago
See the seminal presentation on the subject. https://speakerdeck.com/vjeux/react-css-in-js
623.
▲
by
clessg
11y ago
I suppose I look at things differently, because I use the BEM/SUIT methodology. There is already a logical one-to-one mapping between most BEM components and React components, so the effort required to change everything would be roughl
624.
▲
by
clessg
11y ago
Right, so it's more based on "what feels right"? (I don't mean that in a bad way - sorry - am genuinely curious.) Note that you can import files in JS too. If you want to turn it into n files, then there's webpack&#
625.
▲
by
clessg
11y ago
import theme from 'styles/theme';
626.
▲
by
clessg
11y ago
<div is="dialog"> <h1 is="title"> { this.props.title } </h1> <div is="actions"> <Button is="Cancel" label="Cancel" &#
627.
▲
by
clessg
11y ago
Elaborate?
628.
▲
by
clessg
11y ago
What is your practical issue with it? I know it feels wrong at first, and by default performance may not be as good, but it makes sense to colocate the trio: one component into one file. If you already use a methodology like BEM or SUIT, th
629.
▲
by
clessg
11y ago
If your experience is that designers do all the CSS and no JS, then feel free to continue using that approach. Some of us either have good designers who adhere to Atomic Design and know some JS, and some of us have to translate mock-ups int
630.
▲
by
clessg
11y ago
> we should probably /also/ add a ES6 base class as a second option, and let the people choose which they prefer. Please provide a higher-order component or ES7 decorator (assuming ES7 will be supported?), would rather not use
More ›