From 31c46182c020581efbe8c1d65c0ca3cabe9534ab Mon Sep 17 00:00:00 2001 From: Cheng Lou Date: Fri, 19 Jul 2013 14:43:11 -0400 Subject: [PATCH] fix typos --- _posts/2013-06-27-community-roundup-3.md | 2 +- docs/07-working-with-the-browser.md | 2 +- docs/07.1-more-about-refs.md | 2 +- docs/09-reference.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_posts/2013-06-27-community-roundup-3.md b/_posts/2013-06-27-community-roundup-3.md index 50fed079..7ee8a331 100644 --- a/_posts/2013-06-27-community-roundup-3.md +++ b/_posts/2013-06-27-community-roundup-3.md @@ -8,7 +8,7 @@ The highlight of this week is that an interaction-heavy app has been ported to R ## Moving From Backbone To React -[Clay Allsopp](http://twitter.com/clayallsopp) successfuly ported [Propeller](http://usepropeller.com/blog/posts/from-backbone-to-react/), a fairly big, interaction-heavy JavaScript app, to React. +[Clay Allsopp](http://twitter.com/clayallsopp) successfully ported [Propeller](http://usepropeller.com/blog/posts/from-backbone-to-react/), a fairly big, interaction-heavy JavaScript app, to React. > [](http://usepropeller.com/blog/posts/from-backbone-to-react/)Subviews involve a lot of easy-to-forget boilerplate that Backbone (by design) doesn't automate. Libraries like Backbone.Marionette offer more abstractions to make view nesting easier, but they're all limited by the fact that Backbone delegates how and went view-document attachment occurs to the application code. > diff --git a/docs/07-working-with-the-browser.md b/docs/07-working-with-the-browser.md index 1aedc64b..7e4b1a97 100644 --- a/docs/07-working-with-the-browser.md +++ b/docs/07-working-with-the-browser.md @@ -114,7 +114,7 @@ _Mounted_ composite components also support the following methods: At Facebook, we support older browsers, including IE8. We've had polyfills in place for a long time to allow us to write forward-thinking JS. This means we don't have a bunch of hacks scattered throughout our codebase and we can still expect our code to "just work". For example, instead of seeing `+new Date()`, we can just write `Date.now()`. Since the open source React is the same as what we use internally, we've carried over this philosophy of using forward thinking JS. -In addition to that philosphy, we've also taken the stance that we, as authors of a JS library, should not be shipping polyfills as a part of our library. If every library did this, there's a good chance you'd be sending down the same polyfill multiple times, which could be a sizable chunk of dead code. If your product needs to support older browsers, chances are you're already using something like [es5-shim](https://github.com/kriskowal/es5-shim). +In addition to that philosophy, we've also taken the stance that we, as authors of a JS library, should not be shipping polyfills as a part of our library. If every library did this, there's a good chance you'd be sending down the same polyfill multiple times, which could be a sizable chunk of dead code. If your product needs to support older browsers, chances are you're already using something like [es5-shim](https://github.com/kriskowal/es5-shim). ### Polyfills Needed to Support Older Browsers diff --git a/docs/07.1-more-about-refs.md b/docs/07.1-more-about-refs.md index a62903e0..435d1899 100644 --- a/docs/07.1-more-about-refs.md +++ b/docs/07.1-more-about-refs.md @@ -115,7 +115,7 @@ It's as simple as: }); ``` -In this example, our render function returns a description of an `` instance. But the true instance is accessed via `this.refs.theInput`. As long as a child component with `ref="theInput"` is returned from render, `this.refs.theInput` will access the the proper instance. This even works on higher level (non-DOM) components such as ``. +In this example, our render function returns a description of an `` instance. But the true instance is accessed via `this.refs.theInput`. As long as a child component with `ref="theInput"` is returned from render, `this.refs.theInput` will access the proper instance. This even works on higher level (non-DOM) components such as ``. ## Summary diff --git a/docs/09-reference.md b/docs/09-reference.md index 83c787f2..96f3a006 100644 --- a/docs/09-reference.md +++ b/docs/09-reference.md @@ -52,7 +52,7 @@ Configure React's event system to handle touch events on mobile devices. function createClass(object specification) ``` -Creates a component given a specification. A component implements a `render` method which returns **one single** child. That child may have an arbitrarily deep child structure. One thing that makes components different than a standard prototypal classes is that you don't need to call new on them. They are convenience wrappers that construct backing instances (via new) for you. +Creates a component given a specification. A component implements a `render` method which returns **one single** child. That child may have an arbitrarily deep child structure. One thing that makes components different than standard prototypal classes is that you don't need to call new on them. They are convenience wrappers that construct backing instances (via new) for you. #### React.renderComponent