Skip to content

Commit 75ee7d0

Browse files
committed
Community Round-up facebook#20
1 parent c6b2687 commit 75ee7d0

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
---
2+
title: "Community Round-up #20"
3+
layout: post
4+
author: Lou Husson
5+
---
6+
7+
It's an exciting time for React as there are now more commits from open source contributors than Facebook engineers! Keep up the good work :)
8+
9+
## Atom moves to React
10+
11+
[Atom, GitHub's code editor, is now using React](http://blog.atom.io/2014/07/02/moving-atom-to-react.html) to build the editing experience. They did the move in order to improve performance. By default, React helped them eliminate unnecessary reflows. Then, they were able to architecture the rendering pipeline in order to minimize repaint with hardware acceleration. This is a testament that React's architecture is viable for high performant applications.
12+
13+
[<img src="http://blog.atom.io/img/posts/gpu-cursor-move.gif" style="width: 100%;" />](http://blog.atom.io/2014/07/02/moving-atom-to-react.html)
14+
15+
16+
## Why Does React Scale?
17+
18+
At the last [JSConf.us](http://2014.jsconf.us/), Vjeux talked about the design decisions of the API that makes it scale for large number of developers. If you don't have 20 minutes, take a look at the [annotated slides](https://speakerdeck.com/vjeux/why-does-react-scale-jsconf-2014).
19+
20+
<iframe width="650" height="315" src="//www.youtube.com/embed/D-ioDiacTm8" frameborder="0" allowfullscreen></iframe>
21+
22+
23+
## Live Editing
24+
25+
The best feature of React is that it provides fundations to implement concepts that were otherwise extremely hard to like server-side rendering, undo-redo, rendering to non-DOM like canvas... [Dan Abramov](https://twitter.com/dan_abramov) got hot code reloading working with webpack in order to [live edit a React project](http://gaearon.github.io/react-hot-loader/)!
26+
27+
<iframe src="//player.vimeo.com/video/100010922" width="650" height="315" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
28+
29+
30+
## ReactIntl Mixin by Yahoo
31+
32+
There's a couple of React-related projects that recently appeared on Yahoo's GitHub. The first one is an [internationalization mixin](https://github.com/yahoo/react-intl). That's exciting to see them contributing.
33+
34+
```javascript
35+
var MyComponent = React.createClass({
36+
mixins: [ReactIntlMixin],
37+
render: function() {
38+
return (
39+
<div>
40+
<p>{this.intlDate(1390518044403, { hour: 'numeric', minute: 'numeric' })}</p>
41+
<p>{this.intlNumber(400, { style: 'percent' })}</p>
42+
</div>
43+
);
44+
}
45+
});
46+
47+
React.renderComponent(
48+
<MyComponent locales={['fr-FR']} />,
49+
document.getElementById('example')
50+
);
51+
```
52+
53+
## Thinking and Learning React
54+
55+
Josephine Hall, working at Ice Lab studio, used React to write a mobile-focused application. She wrote a blog post [“Thinking and Learning React.js”](http://icelab.com.au/articles/thinking-and-learning-reactjs/) to share her experience with elements they had to use. You'll learn about Routing, dispatch, touchable component and basic animations.
56+
57+
58+
## London React Meetup
59+
60+
If you missed the last [London React Meetup](http://www.meetup.com/London-React-User-Group/events/191406572/), the video is available. Lots of great content.
61+
62+
- What's new in React 0.11 and how to improve performance by guaranteeing immutability
63+
- State handling in React with Morearty.JS
64+
- React on Rails - How to use React with Ruby on Rails, to build isomorphic apps
65+
- Building an isomorphic, real time to do list with moped and node.js
66+
67+
<iframe width="650" height="315" src="//www.youtube.com/embed/CP3lvm5Ppqo" frameborder="0" allowfullscreen></iframe>
68+
69+
On a related news, the next [React SF Meetup](http://www.meetup.com/ReactJS-San-Francisco/events/195518392/) is going to be from Prezi: [“Immediate Mode on the Web: How We Implemented the Prezi Viewer in JavaScript”](https://medium.com/prezi-engineering/how-and-why-prezi-turned-to-javascript-56e0ca57d135). While not in React, their tech is really awesome and share a lot of the design principles and perf optimizations.
70+
71+
72+
## Using React and KendoUI Together
73+
74+
One of the strength of React is that it plays nicely with other libraries. Jim Cowart proved it by writing a tutorial that explains how to write [React component adapters for KendoUI](http://www.ifandelse.com/using-reactjs-and-kendoui-together/).
75+
76+
<figure><a href="http://www.ifandelse.com/using-reactjs-and-kendoui-together/"><img src="/react/img/blog/kendoui.png" /></a></figure>
77+
78+
79+
## Acorn JSX
80+
81+
Ingvar Stepanyan extended Acorn JavaScript parser to support JSX. The result is a [JSX parser](https://github.com/RReverser/acorn-jsx) that's 1.5-2x faster than the official JSX implementation. It is an experiment and is not meant to be used for serious things. It's always a good thing to get competition on performance!
82+
83+
84+
## ReactScriptLoader
85+
86+
Yariv Sadan created [ReactScriptLoader](https://github.com/yariv/ReactScriptLoader) to make it easier to write components that require an external script.
87+
88+
```javascript
89+
var Foo = React.createClass({
90+
mixins: [ReactScriptLoaderMixin],
91+
getScriptURL: function() {
92+
return 'http://d3js.org/d3.v3.min.js';
93+
},
94+
getInitialState: function() {
95+
return { scriptLoading: true, scriptLoadError: false };
96+
},
97+
onScriptLoaded: function() {
98+
this.setState({scriptLoading: false});
99+
},
100+
onScriptError: function() {
101+
this.setState({scriptLoading: false, scriptLoadError: true});
102+
},
103+
render: function() {
104+
var message =
105+
this.state.scriptLoading ? 'Loading script...' :
106+
this.state.scriptLoadError ? 'Loading failed' :
107+
'Loading succeeded';
108+
return <span>{message}</span>;
109+
}
110+
});
111+
```
112+
113+
## Random Tweet
114+
115+
<blockquote class="twitter-tweet" data-conversation="none" lang="en"><p>“<a href="https://twitter.com/apphacker">@apphacker</a>: I take back the mean things I said about <a href="https://twitter.com/reactjs">@reactjs</a> I actually like it.” Summarizing the life of ReactJS in a single tweet.</p>&mdash; Jordan (@jordwalke) <a href="https://twitter.com/jordwalke/statuses/490747339607265280">July 20, 2014</a></blockquote>
116+

docs/img/blog/kendoui.png

41.2 KB
Loading

0 commit comments

Comments
 (0)