From 8f55d94d407a445a6f27d007f20421210757d6b8 Mon Sep 17 00:00:00 2001 From: Hugo Jobling Date: Thu, 18 Jul 2013 10:36:54 +0100 Subject: [PATCH 1/3] update dead jsx link to point to an extant page syntax.html no longer exists, so point people at the in depth article instead. --- docs/docs/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/tutorial.md b/docs/docs/tutorial.md index 04b313ecf4..8e640f450a 100644 --- a/docs/docs/tutorial.md +++ b/docs/docs/tutorial.md @@ -99,7 +99,7 @@ React.renderComponent( ); ``` -Its use is optional but we've found JSX syntax easier to use than plain JavaScript. Read more on the [JSX Syntax article](syntax.html). +Its use is optional but we've found JSX syntax easier to use than plain JavaScript. Read more on the [JSX Syntax article](jsx-in-depth.html). #### What's going on From 07427ae9d029a8af89451c43dab65b61c20904ed Mon Sep 17 00:00:00 2001 From: Hugo Jobling Date: Thu, 18 Jul 2013 10:44:22 +0100 Subject: [PATCH 2/3] put closing paren in correct place --- docs/docs/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/tutorial.md b/docs/docs/tutorial.md index 8e640f450a..01362e8361 100644 --- a/docs/docs/tutorial.md +++ b/docs/docs/tutorial.md @@ -107,7 +107,7 @@ We pass some methods in a JavaScript object to `React.createClass()` to create a The `
` tags are not actual DOM nodes; they are instantiations of React `div` components. You can think of these as markers or pieces of data that React knows how to handle. React is **safe**. We are not generating HTML strings so XSS protection is the default. -You do not have to return basic HTML. You can return a tree of components that you (or someone else built). This is what makes React **composable**: a key tenet of maintainable frontends. +You do not have to return basic HTML. You can return a tree of components that you (or someone else) built. This is what makes React **composable**: a key tenet of maintainable frontends. `React.renderComponent()` instantiates the root component, starts the framework, and injects the markup into a raw DOM element, provided as the second argument. From 4ab62a6bd2b38464e129ad95360d9de75c8133b5 Mon Sep 17 00:00:00 2001 From: Hugo Jobling Date: Thu, 18 Jul 2013 11:05:39 +0100 Subject: [PATCH 3/3] remove dead link the event handling doc page no longer exists --- docs/docs/tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/tutorial.md b/docs/docs/tutorial.md index 01362e8361..ef6c1d0501 100644 --- a/docs/docs/tutorial.md +++ b/docs/docs/tutorial.md @@ -489,7 +489,7 @@ var CommentForm = React.createClass({ React attaches event handlers to components using a camelCase naming convention. We attach an `onSubmit` handler to the form that clears the form fields when the form is submitted with valid input. -We always return `false` from the event handler to prevent the browser's default action of submitting the form. (If you prefer, you can instead take the event as an argument and call `preventDefault()` on it – read more about [event handling](event-handling.html).) +We always return `false` from the event handler to prevent the browser's default action of submitting the form. (If you prefer, you can instead take the event as an argument and call `preventDefault()` on it.) ##### Refs