Re:The cost of transpiling ES2015 in 2016
by mbrock on Monday February 08, 2016 @01:39PM
(#11059994)
Yeah, same idea.
The dream that designers, being comfortable with HTML, would be able to mess around with JSX is, as far as I can tell, unrealistic anyway, because it's always full of React-specific weird stuff that the designer doesn't understand and doesn't want to mess with.
Re:The cost of transpiling ES2015 in 2016
by WickyNilliams on Tuesday February 09, 2016 @09:18AM
(#11065378)
You should separate your Presentational and Container components [0]. Presentational components can be pure and stateless, containing no/minimal React-specific weird stuff - that should go into the Containers.
[0] https://medium.com/@dan_abramov/smart-and-dumb-components-7c...
https://blog.fastmail.com/2012/02/20/building-the-new-ajax-m...
I too am fond of that approach.