mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
467 lines
37 KiB
HTML
467 lines
37 KiB
HTML
<!DOCTYPE html>
|
||
<!--[if IE]><![endif]-->
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||
<title>Blog | React</title>
|
||
<meta name="viewport" content="width=device-width">
|
||
<meta property="og:title" content="Blog | React">
|
||
<meta property="og:type" content="website">
|
||
<meta property="og:url" content="http://facebook.github.io/react/blog/index.html">
|
||
<meta property="og:image" content="http://facebook.github.io/react/img/logo_og.png">
|
||
<meta property="og:description" content="A JavaScript library for building user interfaces">
|
||
<meta property="fb:app_id" content="623268441017527">
|
||
|
||
<link rel="shortcut icon" href="/react/favicon.ico">
|
||
<link rel="alternate" type="application/rss+xml" title="React" href="http://facebook.github.io/react/feed.xml">
|
||
|
||
<link rel="stylesheet" href="/react/css/syntax.css">
|
||
<link rel="stylesheet" href="/react/css/codemirror.css">
|
||
<link rel="stylesheet" href="/react/css/react.css">
|
||
|
||
<script type="text/javascript" src="//use.typekit.net/vqa1hcx.js"></script>
|
||
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
||
|
||
<!--[if lte IE 8]>
|
||
<script type="text/javascript" src="/react/js/html5shiv.min.js"></script>
|
||
<script type="text/javascript" src="/react/js/es5-shim.min.js"></script>
|
||
<script type="text/javascript" src="/react/js/es5-sham.min.js"></script>
|
||
<![endif]-->
|
||
<script type="text/javascript" src="/react/js/codemirror.js"></script>
|
||
<script type="text/javascript" src="/react/js/javascript.js"></script>
|
||
<script type="text/javascript" src="/react/js/react.js"></script>
|
||
<script type="text/javascript" src="/react/js/JSXTransformer.js"></script>
|
||
<script type="text/javascript" src="/react/js/live_editor.js"></script>
|
||
<script type="text/javascript" src="/react/js/showdown.js"></script>
|
||
</head>
|
||
<body>
|
||
|
||
<div class="container">
|
||
|
||
<div class="nav-main">
|
||
<div class="wrap">
|
||
<a class="nav-home" href="/react/index.html">
|
||
<img class="nav-logo" src="/react/img/logo.svg" width="36" height="36">
|
||
React
|
||
</a>
|
||
<ul class="nav-site">
|
||
<li><a href="/react/docs/getting-started.html">docs</a></li>
|
||
<li><a href="/react/support.html">support</a></li>
|
||
<li><a href="/react/downloads.html">download</a></li>
|
||
<li><a href="/react/blog/" class="active">blog</a></li>
|
||
<li><a href="http://github.com/facebook/react">github</a>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<section class="content wrap blogContent">
|
||
<div class="nav-docs nav-blog">
|
||
<div class="nav-docs-section">
|
||
<h3>Recent posts</h3>
|
||
<ul>
|
||
|
||
<li><a href="/react/blog/2014/12/19/react-js-conf-diversity-scholarship.html">React.js Conf Diversity Scholarship</a></li>
|
||
|
||
<li><a href="/react/blog/2014/12/18/react-v0.12.2.html">React v0.12.2</a></li>
|
||
|
||
<li><a href="/react/blog/2014/11/25/community-roundup-24.html">Community Round-up #24</a></li>
|
||
|
||
<li><a href="/react/blog/2014/11/24/react-js-conf-updates.html">React.js Conf Updates</a></li>
|
||
|
||
<li><a href="/react/blog/2014/10/28/react-v0.12.html">React v0.12</a></li>
|
||
|
||
<li><a href="/react/blog/2014/10/27/react-js-conf.html">React.js Conf</a></li>
|
||
|
||
<li><a href="/react/blog/2014/10/17/community-roundup-23.html">Community Round-up #23</a></li>
|
||
|
||
<li><a href="/react/blog/2014/10/16/react-v0.12-rc1.html">React v0.12 RC</a></li>
|
||
|
||
<li><a href="/react/blog/2014/10/14/introducing-react-elements.html">Introducing React Elements</a></li>
|
||
|
||
<li><a href="/react/blog/2014/09/24/testing-flux-applications.html">Testing Flux Applications</a></li>
|
||
|
||
<li><a href="/react/blog/all.html">All posts ...</a></li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="inner-content">
|
||
|
||
<div class="post-list-item">
|
||
<h1><a href="/react/blog/2014/12/19/react-js-conf-diversity-scholarship.html">React.js Conf Diversity Scholarship</a></h1>
|
||
<p class="meta">December 19, 2014 by Paul O’Shannessy</p>
|
||
<hr />
|
||
<div class="post">
|
||
<p>Today I'm really happy to announce the React.js Conf Diversity Scholarship! We believe that a diverse set of viewpoints and opinions is really important to build a thriving community. In an ideal world, every part of the tech community would be made up of people from all walks of life. However the reality is that we must be proactive and make an effort to make sure everybody has a voice. As conference organizers we worked closely with the Diversity Team here at Facebook to set aside 10 tickets and provide a scholarship. 10 tickets may not be many in the grand scheme but we really believe that this will have a positive impact on the discussions we have at the conference.</p>
|
||
|
||
<p>I'm really excited about this and I hope you are too! The full announcement is below:</p>
|
||
|
||
<hr>
|
||
|
||
<p>The Diversity Team at Facebook is excited to announce that we are now accepting applications for the React.js Conf scholarship!</p>
|
||
|
||
<p>Beginning today, those studying or working in computer science or a related field can apply for an all-expense paid scholarship to attend the React.js Conf at Facebook’s Headquarters in Menlo Park, CA on January 28 & 29, 2015. React opens a world of new possibilities such as server-side rendering, real-time updates, different rendering targets like SVG and canvas. Join us at React.js Conf to shape the future of client-side applications! For more information about the React.js conference, please see the <a href="http://conf.reactjs.com/">website</a> and <a href="http://facebook.github.io/react/blog/2014/10/27/react-js-conf.html">previous</a> <a href="http://facebook.github.io/react/blog/2014/11/24/react-js-conf-updates.html">updates</a> on our blog.</p>
|
||
|
||
<p>At Facebook, we believe that anyone anywhere can make a positive impact by developing products to make the world more open and connected to the people and things they care about. Given the current realities of the tech industry and the lack of representation of communities we seek to serve, applicants currently under-represented in Computer Science and related fields are strongly encouraged to apply.
|
||
Facebook will make determinations on scholarship recipients in its sole discretion. Facebook complies with all equal opportunity laws.</p>
|
||
|
||
<p>To apply for the scholarship, please visit the Application Page: <a href="https://www.surveymonkey.com/s/XVJGK6R">https://www.surveymonkey.com/s/XVJGK6R</a></p>
|
||
<h2><a class="anchor" name="award-includes"></a>Award Includes <a class="hash-link" href="#award-includes">#</a></h2>
|
||
<ul>
|
||
<li>Paid registration fee for the React.js Conf January 28 & 29th at Facebook’s Headquarters in Menlo Park, CA</li>
|
||
<li>Paid travel and lodging expenses</li>
|
||
<li>Additional $200 meal stipend</li>
|
||
</ul>
|
||
<h2><a class="anchor" name="important-dates"></a>Important Dates <a class="hash-link" href="#important-dates">#</a></h2>
|
||
<ul>
|
||
<li>Monday, January 5, 2015: Applications for the React.js Conf Scholarship must be submitted in full</li>
|
||
<li>Friday, January 9, 2015: Award recipients will be notified by email of their acceptance</li>
|
||
<li>Wednesday & Thursday, January 28 & 29, 2015: React.js Conf</li>
|
||
</ul>
|
||
<h2><a class="anchor" name="eligibility"></a>Eligibility <a class="hash-link" href="#eligibility">#</a></h2>
|
||
<ul>
|
||
<li>Must currently be studying or working in Computer Science or a related field</li>
|
||
<li>International applicants are welcome, but you will be responsible for securing your own visa to attend the conference</li>
|
||
<li>You must be available to attend the full duration of React.js conf on January 28 and 29 at Facebook Headquarters in Menlo Park</li>
|
||
</ul>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="post-list-item">
|
||
<h1><a href="/react/blog/2014/12/18/react-v0.12.2.html">React v0.12.2</a></h1>
|
||
<p class="meta">December 18, 2014 by Paul O’Shannessy</p>
|
||
<hr />
|
||
<div class="post">
|
||
<p>We just shipped React v0.12.2, bringing the 0.12 branch up to date with a few small fixes that landed in master over the past 2 months.</p>
|
||
|
||
<p>You may have noticed that we did not do an announcement for v0.12.1. That release was snuck out in anticipation of <a href="http://flowtype.org/">Flow</a>, with only transform-related changes. Namely we added a flag to the <code>jsx</code> executable which allowed you to safely transform Flow-based code to vanilla JS. If you didn't update for that release, you can safely skip it and move directly to v0.12.2.</p>
|
||
|
||
<p>The release is available for download from the CDN:</p>
|
||
|
||
<ul>
|
||
<li><strong>React</strong><br>
|
||
Dev build with warnings: <a href="http://fb.me/react-0.12.2.js">http://fb.me/react-0.12.2.js</a><br>
|
||
Minified build for production: <a href="http://fb.me/react-0.12.2.min.js">http://fb.me/react-0.12.2.min.js</a><br></li>
|
||
<li><strong>React with Add-Ons</strong><br>
|
||
Dev build with warnings: <a href="http://fb.me/react-with-addons-0.12.2.js">http://fb.me/react-with-addons-0.12.2.js</a><br>
|
||
Minified build for production: <a href="http://fb.me/react-with-addons-0.12.2.min.js">http://fb.me/react-with-addons-0.12.2.min.js</a><br></li>
|
||
<li><strong>In-Browser JSX transformer</strong><br>
|
||
<a href="http://fb.me/JSXTransformer-0.12.2.js">http://fb.me/JSXTransformer-0.12.2.js</a></li>
|
||
</ul>
|
||
|
||
<p>We've also published version <code>0.12.2</code> of the <code>react</code> and <code>react-tools</code> packages on npm and the <code>react</code> package on bower. <code>0.12.1</code> is also available in the same locations if need those.</p>
|
||
|
||
<p>Please try these builds out and <a href="https://github.com/facebook/react/issues/new">file an issue on GitHub</a> if you see anything awry.</p>
|
||
<h2><a class="anchor" name="changelog"></a>Changelog <a class="hash-link" href="#changelog">#</a></h2><h3><a class="anchor" name="react-core"></a>React Core <a class="hash-link" href="#react-core">#</a></h3>
|
||
<ul>
|
||
<li>Added support for more HTML attributes: <code>formAction</code>, <code>formEncType</code>, <code>formMethod</code>, <code>formTarget</code>, <code>marginHeight</code>, <code>marginWidth</code></li>
|
||
<li>Added <code>strokeOpacity</code> to the list of unitless CSS properties</li>
|
||
<li>Removed trailing commas (allows npm module to be bundled and used in IE8)</li>
|
||
<li>Fixed bug resulting in error when passing <code>undefined</code> to <code>React.createElement</code> - now there is a useful warning</li>
|
||
</ul>
|
||
<h3><a class="anchor" name="react-tools"></a>React Tools <a class="hash-link" href="#react-tools">#</a></h3>
|
||
<ul>
|
||
<li>JSX-related transforms now always use double quotes for props and <code>displayName</code></li>
|
||
</ul>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="post-list-item">
|
||
<h1><a href="/react/blog/2014/11/25/community-roundup-24.html">Community Round-up #24</a></h1>
|
||
<p class="meta">November 25, 2014 by Steven Luscher</p>
|
||
<hr />
|
||
<div class="post">
|
||
<h2><a class="anchor" name="keep-it-simple"></a>Keep it Simple <a class="hash-link" href="#keep-it-simple">#</a></h2>
|
||
<p>Pedro Nauck (<a href="https://github.com/pedronauck">pedronauck</a>) delivered an impeccably illustrated deck at Brazil's <em>Front in Floripa</em> conference. Watch him talk about how to keep delivering value as your app scales, by keeping your development process simple.</p>
|
||
|
||
<script async class="speakerdeck-embed" data-id="44129b9054c901328b89221e99b278fe" data-ratio="1.33333333333333" src="//speakerdeck.com/assets/embed.js"></script>
|
||
|
||
<p>Murilo Pereira (<a href="https://github.com/mpereira">mpereira</a>) tussles with the topic of complexity in this blog post about <a href="http://www.techsonian.net/2014/09/from-backbone-to-react-our-experience-scaling-a-web-application/">coping with scaling up</a>, where he describes how his team used React to make possible the “nearly impossible.”</p>
|
||
|
||
<p>I (<a href="https://github.com/steveluscher">steveluscher</a>) spoke at Manning Publications' “Powered By JavaScript” Strangeloop pre-conf in St. Louis. There, I proposed a new notation to talk about development complexity – Big-Coffee Notation ☕(n) – and spoke about the features of React that help keep our Big-Coffee from going quadratic, as our user interfaces get more complex.</p>
|
||
|
||
<iframe width="560" height="315" src="//www.youtube.com/embed/rI0GQc__0SM" frameborder="0" allowfullscreen></iframe>
|
||
|
||
<p>James Pearce (<a href="https://github.com/jamesgpearce">jamesgpearce</a>) carried Big-Coffee all the way to Raleigh, NC. At the <em>All Things Open</em> conference, he spoke about some of the design decisions that went into React, particularly those that lend themselves to simpler, more reliable code.</p>
|
||
|
||
<iframe width="560" height="315" src="//www.youtube.com/embed/m2fuO2wl_3c" frameborder="0" allowfullscreen></iframe>
|
||
<h2><a class="anchor" name="all-about-isomorphism"></a>All About Isomorphism <a class="hash-link" href="#all-about-isomorphism">#</a></h2>
|
||
<p>Michael Ridgway (<a href="https://github.com/mridgway">mridgway</a>) shows us how Yahoo! (who recently <a href="http://www.slideshare.net/rmsguhan/react-meetup-mailonreact">moved Yahoo! Mail to React</a>) renders their React+Flux application, server-side.</p>
|
||
|
||
<script async class="speakerdeck-embed" data-id="87ecaa3048750132f42542ffc18c6fcf" data-ratio="1.77777777777778" src="//speakerdeck.com/assets/embed.js"></script>
|
||
|
||
<p>Péter Márton (<a href="https://github.com/hekike">hekike</a>) helps us brew a cold one (literally) using an application that's server-client <a href="http://blog.risingstack.com/from-angularjs-to-react-the-isomorphic-way/">isomorphic and indexable</a>. Demo and sample code included – cold ones sold separately.</p>
|
||
|
||
<p>And, lest you think that client-server isomorphism exists in pursuit of crawalable, indexable HTML alone, watch as Nate Hunzaker (<a href="https://github.com/nhunzaker">nhunzaker</a>) <a href="http://viget.com/extend/visualization-is-for-sharing-using-react-for-portable-data-visualization">server renders data visualizations as SVG</a> with React.</p>
|
||
<h2><a class="anchor" name="react-router-mows-the-lawn"></a>React Router Mows the Lawn <a class="hash-link" href="#react-router-mows-the-lawn">#</a></h2>
|
||
<p>Ryan Florence (<a href="https://github.com/rpflorence%5D">rpflorence</a>) and Michael Jackson (<a href="https://github.com/mjackson">mjackson</a>) unveiled a new API for <a href="https://github.com/rackt/react-router">React Router</a> that solves some of its user's problems by eliminating the problems themselves. Read all about what React Router learned from its community of users, and how they've <a href="https://github.com/rackt/react-router/wiki/Announcements">rolled your ideas into their latest release</a>.</p>
|
||
<h2><a class="anchor" name="react-in-practice"></a>React in Practice <a class="hash-link" href="#react-in-practice">#</a></h2>
|
||
<p>Jonathan Beebe (<a href="https://github.com/somethingkindawierd">somethingkindawierd</a>) spoke about how he uses React to build tools that deliver hope to those trying to make the best of a bad situation. Watch his talk from this year's <em>Nodevember</em> conference in Nashville</p>
|
||
|
||
<iframe width="420" height="315" src="//www.youtube.com/embed/uZgAq1CZ1N8" frameborder="0" allowfullscreen></iframe>
|
||
|
||
<p>If you take a peek under the covers, you'll find that React powers <a href="https://blog.carousel.com/2014/11/introducing-carousel-for-web-ipad-and-android-tablet/">Carousel</a>, Dropbox's new photo and video gallery app.</p>
|
||
|
||
<p>We enjoyed a cinematic/narrative experience with this React-powered, interactive story by British author William Boyd. Dive into “<a href="https://thevanishinggame.wellstoried.com">The Vanishing Game</a>” and see for yourself.</p>
|
||
<h2><a class="anchor" name="be-kind-rewind"></a>Be Kind, Rewind <a class="hash-link" href="#be-kind-rewind">#</a></h2>
|
||
<p>Spend the next 60 seconds watching Daniel Woelfel (<a href="https://github.com/dwwoelfel">dwwoelfel</a>) serialize a React app's state as a string, then deserialize it to produce a working UI. Read about how he uses this technique to <a href="http://blog.circleci.com/local-state-global-concerns/">reproduce bugs</a> reported to him by his users.</p>
|
||
|
||
<iframe width="420" height="315" src="//www.youtube.com/embed/5yHFTN-_mOo" frameborder="0" allowfullscreen></iframe>
|
||
<h2><a class="anchor" name="community-components"></a>Community Components <a class="hash-link" href="#community-components">#</a></h2>
|
||
<p>Tom Chen (<a href="https://github.com/tomchentw">tomchentw</a>) brings us a <a href="http://tomchentw.github.io/react-google-maps/">react-google-maps</a> component, and a way to syntax highlight source code using Prism and the <a href="http://tomchentw.github.io/react-prism/">react-prism</a> component, for good measure.</p>
|
||
|
||
<p>Jed Watson (<a href="https://github.com/JedWatson">jedwatson</a>) helps you manage touch, tap, and press events using the <a href="https://github.com/JedWatson/react-tappable">react-tappable</a> component.</p>
|
||
|
||
<p>To find these, and more community-built components, consult the <a href="http://react-components.com/">React Components</a> and <a href="http://react.rocks">React Rocks</a> component directories. React Rocks recently exceeded one-hundred listed components and counting. See one missing? Add the keyword <code>react-component</code> to your <code>package.json</code> to get listed on React Components, and <a href="https://docs.google.com/forms/d/1TpnwJmLcmmGj-_TI68upu_bKBViYeiKx7Aj9uKmV6wY/viewform">submit a link to React Rocks</a>.</p>
|
||
<h2><a class="anchor" name="waiter-theres-a-css-in-my-javascript"></a>Waiter, There's a CSS In My JavaScript <a class="hash-link" href="#waiter-theres-a-css-in-my-javascript">#</a></h2>
|
||
<p>The internet is abuzz with talk of styling React components using JavaScript instead of CSS. Christopher Chedeau (<a href="https://github.com/vjeux">vjeux</a>) talks about some of the <a href="https://speakerdeck.com/vjeux/react-css-in-js">fundamental style management challenges</a> we grapple with, at Facebook scale. A number of implementations of JavaScript centric style management solutions have appeared in the wild, including the React-focused <a href="https://github.com/js-next/react-style">react-style</a>.</p>
|
||
<h2><a class="anchor" name="test-isolation"></a>Test Isolation <a class="hash-link" href="#test-isolation">#</a></h2>
|
||
<p>Yahoo! shows us how they make use of <code>iframe</code> elements to <a href="http://yahooeng.tumblr.com/post/102274727496/to-testutil-or-not-to-testutil">unit test React components in isolation</a>.</p>
|
||
<h2><a class="anchor" name="youve-got-the-hang-of-flux-now-lets-flow"></a>You've Got The Hang of Flux, Now Let's Flow <a class="hash-link" href="#youve-got-the-hang-of-flux-now-lets-flow">#</a></h2>
|
||
<p>Facebook Open Source released <a href="https://code.facebook.com/posts/1505962329687926/flow-a-new-static-type-checker-for-javascript/">Flow</a> this month – a static type checker for JavaScript. Naturally, Flow supports JSX, and you can use it to <a href="https://code.facebook.com/posts/1505962329687926/flow-a-new-static-type-checker-for-javascript/#compatibility">type check React applications</a>. There's never been a better reason to start making use of <code>propTypes</code> in your component specifications!</p>
|
||
<h2><a class="anchor" name="countdown-to-react.js-conf-2014"></a>Countdown to React.js Conf 2014 <a class="hash-link" href="#countdown-to-react.js-conf-2014">#</a></h2>
|
||
<p>We're counting down the days until <a href="http://conf.reactjs.com">React.js Conf</a> at Facebook's headquarters in Menlo Park, California, on January 28th & 29th, 2015. Thank you, to everyone who responded to the Call for Presenters. Mark the dates; tickets go on sale in three waves: at noon PST on November 28th, December 5th, and December 12th, 2014.</p>
|
||
<h2><a class="anchor" name="react-meetups-around-the-world"></a>React Meetups Around the World <a class="hash-link" href="#react-meetups-around-the-world">#</a></h2>
|
||
<blockquote class="twitter-tweet" lang="en"><p>React JS meetup having pretty good turn up rate today <a href="https://twitter.com/hashtag/londonreact?src=hash">#londonreact</a> <a href="http://t.co/c360dlVVAe">pic.twitter.com/c360dlVVAe</a></p>— Alexander Savin (@karismafilms) <a href="https://twitter.com/karismafilms/status/535152580377468928">November 19, 2014</a></blockquote>
|
||
|
||
<div class="skinny-row">
|
||
<div class="skinny-col">
|
||
<blockquote class="twitter-tweet" lang="en"><p>60+ attendees at the second React.js Utah meetup. <a href="https://twitter.com/ryanflorence">@ryanflorence</a> doing a great job, even without the internet. <a href="http://t.co/fV59AQTOyu">pic.twitter.com/fV59AQTOyu</a></p>— ReactJS Utah (@reactjsutah) <a href="https://twitter.com/reactjsutah/status/527259410020573184">October 29, 2014</a></blockquote>
|
||
</div>
|
||
<div class="skinny-col">
|
||
<blockquote class="twitter-tweet" lang="en"><p><a href="https://twitter.com/hashtag/ReactJS?src=hash">#ReactJS</a> meetup at <a href="https://twitter.com/Yahoo">@Yahoo</a> ! History of <a href="https://twitter.com/yahoomail">@yahoomail</a> and why we chose react and NodeJS <a href="http://t.co/Nm4EdTv45G">pic.twitter.com/Nm4EdTv45G</a></p>— rmsguhan (@rmsguhan) <a href="https://twitter.com/rmsguhan/status/515370950427029504">September 26, 2014</a></blockquote>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="skinny-row">
|
||
<div class="skinny-col">
|
||
<blockquote class="twitter-tweet" data-cards="hidden" lang="en"><p>The very first ReactJS meetup in NYC tonight, I'll be speaking about the big ideas behind Om <a href="http://t.co/dvPrFqE9eP">http://t.co/dvPrFqE9eP</a></p>— David Nolen (@swannodette) <a href="https://twitter.com/swannodette/status/532190993463128064">November 11, 2014</a></blockquote>
|
||
</div>
|
||
<div class="skinny-col">
|
||
<blockquote class="twitter-tweet" lang="en"><p>If anyone in Sydney is curious about <a href="https://twitter.com/reactjs">@reactjs</a>, I'm presenting at <a href="https://twitter.com/sydjs">@sydjs</a> tonight on how to use it and why it is the future. <a href="https://twitter.com/hashtag/javascript?src=hash">#javascript</a></p>— Jed Watson (@JedWatson) <a href="https://twitter.com/JedWatson/status/534943557568565248">November 19, 2014</a></blockquote>
|
||
</div>
|
||
</div>
|
||
|
||
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="post-list-item">
|
||
<h1><a href="/react/blog/2014/11/24/react-js-conf-updates.html">React.js Conf Updates</a></h1>
|
||
<p class="meta">November 24, 2014 by Vjeux</p>
|
||
<hr />
|
||
<div class="post">
|
||
<p>Yesterday was the <a href="http://conf.reactjs.com/index.html">React.js Conf</a> call for presenters submission deadline. We were
|
||
surprised to have received a total of <strong>one hundred talk proposals</strong> and were
|
||
amazed that 600 people requested to be notified when ticket go on sale. This is incredible!</p>
|
||
|
||
<p>When we organized the conference, we decided to start small since this is the
|
||
first React.js conference. Also, we weren't sure what level of demand to expect,
|
||
so we planned for a single-track, two-day conference on Facebook's campus. The
|
||
largest room available would accomodate 18 speaking slots and 200 attendees.
|
||
The spacial configuration makes it difficult to add a second track and changing
|
||
venues only two months in advance would be too difficult, so we are deciding to
|
||
stick with the originally planned format and venue on Facebook's campus.</p>
|
||
|
||
<p>Unfortunately, this means that we can only accept a small number of the awesome
|
||
conference talk proposals. In order to make sure attendees get a fair shot at
|
||
registering, we're going to to sell tickets in three separate first-come,
|
||
first-serve phases. <strong>Tickets will cost $200 regardless of which phase they are
|
||
purchased from and all proceeds will go to charity</strong>.</p>
|
||
|
||
<ul>
|
||
<li>Friday November 28th 2014 — Noon PST: First wave of tickets</li>
|
||
<li>Friday December 5th 2014 — Noon PST: Second wave of tickets</li>
|
||
<li>Friday December 12th 2014 — Noon PST: Third and last wave of tickets</li>
|
||
</ul>
|
||
|
||
<p>We really do wish that everyone could attend React.js Conf, but in order to
|
||
ensure a quality experience for those who attend, we feel it will be best to
|
||
limit the size of the conference to what was originally planned for. This means
|
||
that not everyone who wants to attend will be able to, and many talks that
|
||
would be excellent contributions to the conference will have to be postponed
|
||
until the next conference. All the talks will be recorded and put online shortly after.</p>
|
||
|
||
<p>We hope to see many of you at React.js Conf this January.</p>
|
||
|
||
<p>Sincerely,</p>
|
||
|
||
<p>React Core Team</p>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<div class="post-list-item">
|
||
<h1><a href="/react/blog/2014/10/28/react-v0.12.html">React v0.12</a></h1>
|
||
<p class="meta">October 28, 2014 by Paul O’Shannessy</p>
|
||
<hr />
|
||
<div class="post">
|
||
<p>We're happy to announce the availability of React v0.12! After over a week of baking as the release candidate, we uncovered and fixed a few small issues. Thanks to all of you who upgraded and gave us feedback!</p>
|
||
|
||
<p>We have talked a lot about some of the bigger changes in this release. <a href="/react/blog/2014/10/14/introducing-react-elements.html">We introduced new terminology</a> and changed APIs to clean up and simplify some of the concepts of React. <a href="/react/blog/2014/10/16/react-v0.12-rc1.html">We also made several changes to JSX</a> and deprecated a few functions. We won't go into depth about these changes again but we encourage you to read up on these changes in the linked posts. We'll summarize these changes and discuss some of the other changes and how they may impact you below. As always, a full changelog is also included below.</p>
|
||
|
||
<p>The release is available for download:</p>
|
||
|
||
<ul>
|
||
<li><strong>React</strong><br>
|
||
Dev build with warnings: <a href="http://fb.me/react-0.12.0.js">http://fb.me/react-0.12.0.js</a><br>
|
||
Minified build for production: <a href="http://fb.me/react-0.12.0.min.js">http://fb.me/react-0.12.0.min.js</a><br></li>
|
||
<li><strong>React with Add-Ons</strong><br>
|
||
Dev build with warnings: <a href="http://fb.me/react-with-addons-0.12.0.js">http://fb.me/react-with-addons-0.12.0.js</a><br>
|
||
Minified build for production: <a href="http://fb.me/react-with-addons-0.12.0.min.js">http://fb.me/react-with-addons-0.12.0.min.js</a><br></li>
|
||
<li><strong>In-Browser JSX transformer</strong><br>
|
||
<a href="http://fb.me/JSXTransformer-0.12.0.js">http://fb.me/JSXTransformer-0.12.0.js</a></li>
|
||
</ul>
|
||
|
||
<p>We've also published version <code>0.12.0</code> of the <code>react</code> and <code>react-tools</code> packages on npm and the <code>react</code> package on bower.</p>
|
||
<h2><a class="anchor" name="new-terminology-amp-updated-apis"></a>New Terminology & Updated APIs <a class="hash-link" href="#new-terminology-amp-updated-apis">#</a></h2>
|
||
<p>v0.12 is bringing about some new terminology. <a href="/react/blog/2014/10/14/introducing-react-elements.html">We introduced</a> this 2 weeks ago and we've also documented it in <a href="/react/docs/glossary.html">a new section of the documentation</a>. As a part of this, we also corrected many of our top-level APIs to align with the terminology. <code>Component</code> has been removed from all of our <code>React.render*</code> methods. While at one point the argument you passed to these functions was called a Component, it no longer is. You are passing ReactElements. To align with <code>render</code> methods in your component classes, we decided to keep the top-level functions short and sweet. <code>React.renderComponent</code> is now <code>React.render</code>.</p>
|
||
|
||
<p>We also corrected some other misnomers. <code>React.isValidComponent</code> actually determines if the argument is a ReactElement, so it has been renamed to <code>React.isValidElement</code>. In the same vein, <code>React.PropTypes.component</code> is now <code>React.PropTypes.element</code> and <code>React.PropTypes.renderable</code> is now <code>React.PropTypes.node</code>.</p>
|
||
|
||
<p>The old methods will still work but will warn upon first use. They will be removed in v0.13.</p>
|
||
<h2><a class="anchor" name="jsx-changes"></a>JSX Changes <a class="hash-link" href="#jsx-changes">#</a></h2>
|
||
<p><a href="/react/blog/2014/10/16/react-v0.12-rc1.html#jsx-changes">We talked more in depth about these before</a>, so here are the highlights.</p>
|
||
|
||
<ul>
|
||
<li>No more <code>/** @jsx React.DOM */</code>!</li>
|
||
<li>We no longer transform to a straight function call. <code><Component/></code> now becomes <code>React.createElement(Component)</code></li>
|
||
<li>DOM components don't make use of <code>React.DOM</code>, instead we pass the tag name directly. <code><div/></code> becomes <code>React.createElement('div')</code></li>
|
||
<li>We introduced spread attributes as a quick way to transfer props.</li>
|
||
</ul>
|
||
<h2><a class="anchor" name="devtools-improvements-no-more-__internals"></a>DevTools Improvements, No More <code>__internals</code> <a class="hash-link" href="#devtools-improvements-no-more-__internals">#</a></h2>
|
||
<p>For months we've gotten complaints about the React DevTools message. It shouldn't have logged the up-sell message when you were already using the DevTools. Unfortunately this was because the way we implemented these tools resulted in the DevTools knowing about React, but not the reverse. We finally gave this some attention and enabled React to know if the DevTools are installed. We released an update to the devtools several weeks ago making this possible. Extensions in Chrome should auto-update so you probably already have the update installed!</p>
|
||
|
||
<p>As a result of this update, we no longer need to expose several internal modules to the world. If you were taking advantage of this implementation detail, your code will break. <code>React.__internals</code> is no more.</p>
|
||
<h2><a class="anchor" name="license-change---bsd"></a>License Change - BSD <a class="hash-link" href="#license-change---bsd">#</a></h2>
|
||
<p>We updated the license on React to the BSD 3-Clause license with an explicit patent grant. Previously we used the Apache 2 license. These licenses are very similar and our extra patent grant is equivalent to the grant provided in the Apache license. You can still use React with the confidence that we have granted the use of any patents covering it. This brings us in line with the same licensing we use across the majority of our open source projects at Facebook.</p>
|
||
|
||
<p>You can read the full text of the <a href="https://github.com/facebook/react/blob/master/LICENSE">LICENSE</a> and <a href="https://github.com/facebook/react/blob/master/PATENTS"><code>PATENTS</code></a> files on GitHub.</p>
|
||
|
||
<hr>
|
||
<h2><a class="anchor" name="changelog"></a>Changelog <a class="hash-link" href="#changelog">#</a></h2><h3><a class="anchor" name="react-core"></a>React Core <a class="hash-link" href="#react-core">#</a></h3><h4><a class="anchor" name="breaking-changes"></a>Breaking Changes <a class="hash-link" href="#breaking-changes">#</a></h4>
|
||
<ul>
|
||
<li><code>key</code> and <code>ref</code> moved off props object, now accessible on the element directly</li>
|
||
<li>React is now BSD licensed with accompanying Patents grant</li>
|
||
<li>Default prop resolution has moved to Element creation time instead of mount time, making them effectively static</li>
|
||
<li><code>React.__internals</code> is removed - it was exposed for DevTools which no longer needs access</li>
|
||
<li>Composite Component functions can no longer be called directly - they must be wrapped with <code>React.createFactory</code> first. This is handled for you when using JSX.</li>
|
||
</ul>
|
||
<h4><a class="anchor" name="new-features"></a>New Features <a class="hash-link" href="#new-features">#</a></h4>
|
||
<ul>
|
||
<li>Spread operator (<code>{...}</code>) introduced to deprecate <code>this.transferPropsTo</code></li>
|
||
<li>Added support for more HTML attributes: <code>acceptCharset</code>, <code>classID</code>, <code>manifest</code></li>
|
||
</ul>
|
||
<h4><a class="anchor" name="deprecations"></a>Deprecations <a class="hash-link" href="#deprecations">#</a></h4>
|
||
<ul>
|
||
<li><code>React.renderComponent</code> --> <code>React.render</code></li>
|
||
<li><code>React.renderComponentToString</code> --> <code>React.renderToString</code></li>
|
||
<li><code>React.renderComponentToStaticMarkup</code> --> <code>React.renderToStaticMarkup</code></li>
|
||
<li><code>React.isValidComponent</code> --> <code>React.isValidElement</code></li>
|
||
<li><code>React.PropTypes.component</code> --> <code>React.PropTypes.element</code></li>
|
||
<li><code>React.PropTypes.renderable</code> --> <code>React.PropTypes.node</code></li>
|
||
<li><strong>DEPRECATED</strong> <code>React.isValidClass</code></li>
|
||
<li><strong>DEPRECATED</strong> <code>instance.transferPropsTo</code></li>
|
||
<li><strong>DEPRECATED</strong> Returning <code>false</code> from event handlers to preventDefault</li>
|
||
<li><strong>DEPRECATED</strong> Convenience Constructor usage as function, instead wrap with <code>React.createFactory</code></li>
|
||
<li><strong>DEPRECATED</strong> use of <code>key={null}</code> to assign implicit keys</li>
|
||
</ul>
|
||
<h4><a class="anchor" name="bug-fixes"></a>Bug Fixes <a class="hash-link" href="#bug-fixes">#</a></h4>
|
||
<ul>
|
||
<li>Better handling of events and updates in nested results, fixing value restoration in "layered" controlled components</li>
|
||
<li>Correctly treat <code>event.getModifierState</code> as case sensitive</li>
|
||
<li>Improved normalization of <code>event.charCode</code></li>
|
||
<li>Better error stacks when involving autobound methods</li>
|
||
<li>Removed DevTools message when the DevTools are installed</li>
|
||
<li>Correctly detect required language features across browsers</li>
|
||
<li>Fixed support for some HTML attributes:
|
||
|
||
<ul>
|
||
<li><code>list</code> updates correctly now</li>
|
||
<li><code>scrollLeft</code>, <code>scrollTop</code> removed, these should not be specified as props</li>
|
||
</ul></li>
|
||
<li>Improved error messages</li>
|
||
</ul>
|
||
<h3><a class="anchor" name="react-with-addons"></a>React With Addons <a class="hash-link" href="#react-with-addons">#</a></h3><h4><a class="anchor" name="new-features"></a>New Features <a class="hash-link" href="#new-features">#</a></h4>
|
||
<ul>
|
||
<li><code>React.addons.batchedUpdates</code> added to API for hooking into update cycle</li>
|
||
</ul>
|
||
<h4><a class="anchor" name="breaking-changes"></a>Breaking Changes <a class="hash-link" href="#breaking-changes">#</a></h4>
|
||
<ul>
|
||
<li><code>React.addons.update</code> uses <code>assign</code> instead of <code>copyProperties</code> which does <code>hasOwnProperty</code> checks. Properties on prototypes will no longer be updated correctly.</li>
|
||
</ul>
|
||
<h4><a class="anchor" name="bug-fixes"></a>Bug Fixes <a class="hash-link" href="#bug-fixes">#</a></h4>
|
||
<ul>
|
||
<li>Fixed some issues with CSS Transitions</li>
|
||
</ul>
|
||
<h3><a class="anchor" name="jsx"></a>JSX <a class="hash-link" href="#jsx">#</a></h3><h4><a class="anchor" name="breaking-changes"></a>Breaking Changes <a class="hash-link" href="#breaking-changes">#</a></h4>
|
||
<ul>
|
||
<li>Enforced convention: lower case tag names are always treated as HTML tags, upper case tag names are always treated as composite components</li>
|
||
<li>JSX no longer transforms to simple function calls</li>
|
||
</ul>
|
||
<h4><a class="anchor" name="new-features"></a>New Features <a class="hash-link" href="#new-features">#</a></h4>
|
||
<ul>
|
||
<li><code>@jsx React.DOM</code> no longer required</li>
|
||
<li>spread (<code>{...}</code>) operator introduced to allow easier use of props</li>
|
||
</ul>
|
||
<h4><a class="anchor" name="bug-fixes"></a>Bug Fixes <a class="hash-link" href="#bug-fixes">#</a></h4>
|
||
<ul>
|
||
<li>JSXTransformer: Make sourcemaps an option when using APIs directly (eg, for react-rails)</li>
|
||
</ul>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="pagination">
|
||
|
||
|
||
<a href="/react/blog/page2/" class="next">
|
||
Next Page »
|
||
</a>
|
||
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
|
||
<footer class="wrap">
|
||
<div class="left">
|
||
A Facebook & Instagram collaboration.<br>
|
||
<a href="/react/acknowledgements.html">Acknowledgements</a>
|
||
</div>
|
||
<div class="right">
|
||
© 2013–2015 Facebook Inc.<br>
|
||
Documentation licensed under <a href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
|
||
</div>
|
||
</footer>
|
||
</div>
|
||
<div id="fb-root"></div>
|
||
|
||
<script>
|
||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||
ga('create', 'UA-41298772-1', 'facebook.github.io');
|
||
ga('send', 'pageview');
|
||
|
||
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
|
||
|
||
(function(d, s, id) {
|
||
var js, fjs = d.getElementsByTagName(s)[0];
|
||
if (d.getElementById(id)) return;
|
||
js = d.createElement(s); js.id = id;
|
||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=623268441017527";
|
||
fjs.parentNode.insertBefore(js, fjs);
|
||
}(document, 'script', 'facebook-jssdk'));
|
||
</script>
|
||
</body>
|
||
</html>
|