By Lou Husson·
Ryan Florence and Michael Jackson ported Ember’s router to React in a project called React Router. This is a very good example of both communities working together to make the web better!
React.renderComponent(<Routes><Route handler={App}><Route name="about" handler={About} /><Route name="users" handler={Users}><Route name="user" path="/user/:userId" handler={User} /></Route></Route></Routes>,document.getElementById('example'));
Areeb Malik, from Facebook, talks about his experience using React. “On paper, all those JS frameworks look promising: clean implementations, quick code design, flawless execution. But what happens when you stress test JavaScript? What happens when you throw 6 megabytes of code at it? In this talk, we’ll investigate how React performs in a high stress situation, and how it has helped our team build safe code on a massive scale”
Craig McKeachie author of JavaScript Framework Guide wrote an excellent news named “What is React.js? Another Template Library?
While Matt Zabriskie was working on react-tabs he discovered how to use React.Children.map and React.addons.cloneWithProps in order to reference dynamic children.
var App = React.createClass({render: function () {var children = React.Children.map(this.props.children, function (child,index) {return React.addons.cloneWithProps(child, {ref: 'child-' + index,});});return <div>{children}</div>;},});
Have you ever wondered how JSX was implemented? James Long wrote a very instructive blog post that explains how to compile JSX with Sweet.js using Readtables.
Kirill Buga wrote an article on Modern Web explaining how React is different from traditional MVC used by most JavaScript applications
Matt Zabriskie released a project to make your react components draggable.
Jason Brown adapted htmlparser2 to React: htmlparser2-react. That allows you to convert raw HTML to the virtual DOM. This is not the intended way to use React but can be useful as last resort if you have an existing piece of HTML.
var html ='<div data-id="1" class="hey this is a class" ' +'style="width:100%;height: 100%;"><article id="this-article">' +'<p>hey this is a paragraph</p><div><ul><li>1</li><li>2</li>' +'<li>3</li></ul></div></article></div>';var parsedComponent = reactParser(html, React);
If you haven’t yet tried out React, Jacob Rios did a Hangout where he covers the most important aspects and thankfully he recorded it!
We shipped reddit's first production @reactjs code last week, our checkout process.https://t.co/KUInwsCmAF
— Brian Holt (@holtbt) July 28, 2014
.@AirbnbNerds just launched our first user-facing React.js feature to production! We love it so far. https://t.co/KtyudemcIW /@floydophone
— spikebrehm (@spikebrehm) July 22, 2014