Skip to content

Commit 05cec04

Browse files
committed
Merge pull request #2186 from vjeux/roundup_22
Community roundup #22
2 parents af485d9 + d53a365 commit 05cec04

File tree

3 files changed

+114
-0
lines changed

3 files changed

+114
-0
lines changed
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
---
2+
title: "Community Round-up #22"
3+
layout: post
4+
author: Lou Husson
5+
---
6+
7+
This has been an exciting summer as four big companies: Yahoo, Mozilla, Airbnb and Reddit announced that they were using React!
8+
9+
<table><tr><td>
10+
<blockquote width="300" class="twitter-tweet" data-cards="hidden" lang="en"><p>Our friends at <a href="https://twitter.com/Yahoo">@yahoo</a> talk about migrating Yahoo! Mail from YUI to ReactJS at the next <a href="https://twitter.com/hashtag/ReactJS?src=hash">#ReactJS</a> meetup! <a href="http://t.co/Cu2AaE0sVE">http://t.co/Cu2AaE0sVE</a></p>&mdash; Facebook Open Source (@fbOpenSource) <a href="https://twitter.com/fbOpenSource/status/510258065900572672">September 12, 2014</a></blockquote>
11+
</td><td valign="top">
12+
<blockquote width="300" class="twitter-tweet" lang="en"><p>I guess <a href="https://twitter.com/reactjs">@reactjs</a> is getting into Firefox :-) Thanks <a href="https://twitter.com/n1k0">@n1k0</a> ! <a href="https://t.co/kipfUS0hu4">https://t.co/kipfUS0hu4</a></p>&mdash; David Bruant (@DavidBruant) <a href="https://twitter.com/DavidBruant/status/484956929933213696">July 4, 2014</a></blockquote>
13+
</td></tr><tr><td>
14+
<blockquote width="300" class="twitter-tweet" lang="en"><p>.<a href="https://twitter.com/AirbnbNerds">@AirbnbNerds</a> just launched our first user-facing React.js feature to production! We love it so far. <a href="https://t.co/KtyudemcIW">https://t.co/KtyudemcIW</a> /<a href="https://twitter.com/floydophone">@floydophone</a></p>&mdash; spikebrehm (@spikebrehm) <a href="https://twitter.com/spikebrehm/statuses/491645223643013121">July 22, 2014</a></blockquote>
15+
</td><td>
16+
<blockquote width="300" class="twitter-tweet" lang="en"><p>We shipped reddit&#39;s first production <a href="https://twitter.com/reactjs">@reactjs</a> code last week, our checkout process.&#10;&#10;<a href="https://t.co/KUInwsCmAF">https://t.co/KUInwsCmAF</a></p>&mdash; Brian Holt (@holtbt) <a href="https://twitter.com/holtbt/statuses/493852312604254208">July 28, 2014</a></blockquote>
17+
</td></tr></table>
18+
19+
## React's Architecture
20+
21+
[Vjeux](http://blog.vjeux.com/), from the React team, gave a talk at OSCON on the history of React and the various optimizations strategies that are implemented. You can also check out the [annotated slides](https://speakerdeck.com/vjeux/oscon-react-architecture) or [Chris Dawson](http://thenewstack.io/author/chrisdawson/)'s notes titled [JavaScript’s History and How it Led To React](http://thenewstack.io/javascripts-history-and-how-it-led-to-reactjs/).
22+
23+
<iframe width="650" height="315" src="//www.youtube.com/embed/eCf5CquV_Bw" frameborder="0" allowfullscreen></iframe>
24+
25+
26+
## v8 optimizations
27+
28+
Jakob Kummerow landed [two optimizations to V8](http://www.chromium.org/developers/speed-hall-of-fame#TOC-2014-06-18) specifically targeted at optimizing React. That's really exciting to see browser vendors helping out on performance!
29+
30+
31+
## Reusable Components by Khan Academy
32+
33+
[Khan Academy](https://www.khanacademy.org/) released [many high quality standalone components](http://khan.github.io/react-components/) they are using. This is a good opportunity to see what React code used in production look like.
34+
35+
```javascript
36+
var TeX = require('react-components/js/tex.jsx');
37+
React.renderComponent(<TeX>\nabla \cdot E = 4 \pi \rho</TeX>, domNode);
38+
39+
var translated = (
40+
<$_ first="Motoko" last="Kusanagi">
41+
Hello, %(first)s %(last)s!
42+
</$_>
43+
);
44+
```
45+
46+
47+
## React + Browserify + Gulp
48+
49+
[Trường](http://truongtx.me/) wrote a little guide to help your [getting started using React, Browserify and Gulp](http://truongtx.me/2014/07/18/using-reactjs-with-browserify-and-gulp/).
50+
51+
<figure><a href="http://truongtx.me/2014/07/18/using-reactjs-with-browserify-and-gulp/"><img src="/react/img/blog/react-browserify-gulp.jpg" /></a></figure>
52+
53+
54+
## IntegratedCSS
55+
56+
After React put HTML inside of JavaScript, Sander Spies takes the same approach with CSS: [IntegratedCSS](https://github.com/SanderSpies/IntegratedCSS). It seems weird at first but this is the direction where React is heading.
57+
58+
```javascript
59+
var Button = React.createClass({
60+
normalStyle: ReactStyle(function() {
61+
return { backgroundColor: vars.orange };
62+
}),
63+
activeStyle: ReactStyle(function() {
64+
if (this.state.active) {
65+
return { color: 'yellow', padding: '10px' };
66+
}
67+
}),
68+
render: function() {
69+
return (
70+
<div styles={[this.normalStyle(), this.activeStyle()]}>
71+
Hello, I'm styled
72+
</div>
73+
);
74+
}
75+
});
76+
```
77+
78+
79+
## Virtual DOM in Elm
80+
81+
[Evan Czaplicki](http://evan.czaplicki.us) explains how Elm implements the idea of a Virtual DOM and a diffing algorithm. This is great to see React ideas spread to other languages.
82+
83+
> Performance is a good hook, but the real benefit is that this approach leads to code that is easier to understand and maintain. In short, it becomes very simple to create reusable HTML widgets and abstract out common patterns. This is why people with larger code bases should be interested in virtual DOM approaches.
84+
>
85+
> [Read the full article](http://elm-lang.org/blog/Blazing-Fast-Html.elm)
86+
87+
88+
## Components Tutorial
89+
90+
If you are getting started with React, [Joe Maddalone](http://www.joemaddalone.com/) made a good tutorial on how to build your first component.
91+
92+
<iframe width="650" height="200" src="//www.youtube.com/embed/rFvZydtmsxM" frameborder="0" allowfullscreen></iframe>
93+
94+
95+
## Saving time & staying sane?
96+
97+
When [Kent William Innholt](http://http://kentwilliam.com/) who works at [M>Path](http://mpath.com/) summed up his experience using React in an [article](http://kentwilliam.com/articles/saving-time-staying-sane-pros-cons-of-react-js).
98+
99+
> We're building an ambitious new web app, where the UI complexity represents most of the app's complexity overall. It includes a tremendous amount of UI widgets as well as a lot rules on what-to-show-when. This is exactly the sort of situation React.js was built to simplify.
100+
>
101+
> - **Big win**: Tighter coupling of markup and behavior
102+
> - **Jury's still out**: CSS lives outside React.js
103+
> - **Big win**: Cascading updates and functional thinking
104+
> - **Jury's still out**: Verbose propagation
105+
>
106+
> [Read the article...](http://kentwilliam.com/articles/saving-time-staying-sane-pros-cons-of-react-js)
107+
108+
109+
## Weather
110+
111+
To finish this round-up, Andrew Gleave made a page that displays the [Weather](https://github.com/andrewgleave/react-weather). It's great to see that React is also used for small prototypes.
112+
113+
114+
<figure><a href="https://github.com/andrewgleave/react-weather"><img src="/react/img/blog/weather.png" /></a></figure>
25 KB
Loading

docs/img/blog/weather.png

13.9 KB
Loading

0 commit comments

Comments
 (0)