Browse Source

Fixed link to displayName component spec from JSX in depth article

main
Prathamesh Sonpatki 10 years ago
parent
commit
b305bdb5ea
  1. 12
      docs/02.1-jsx-in-depth.md

12
docs/02.1-jsx-in-depth.md

@ -73,7 +73,7 @@ var app = React.createElement(
); );
``` ```
JSX will infer the class's [displayName](/react/docs/component-specs.html#displayName) from the variable assignment when the displayName is undefined: JSX will infer the class's [displayName](/react/docs/component-specs.html#displayname) from the variable assignment when the displayName is undefined:
```javascript ```javascript
// Input (JSX): // Input (JSX):
@ -92,7 +92,7 @@ If you want to use JSX, the [Getting Started](/react/docs/getting-started.html)
> Note: > Note:
> >
> The JSX expression always evaluates to a ReactElement. The actual > The JSX expression always evaluates to a ReactElement. The actual
> implementation details may vary. An optimized mode could inline the > implementation details may vary. An optimized mode could inline the
> ReactElement as an object literal to bypass the validation code in > ReactElement as an object literal to bypass the validation code in
> `React.createElement`. > `React.createElement`.
@ -146,9 +146,9 @@ JSX will handle this properly when compiling your code.
```javascript ```javascript
var App = ( var App = (
React.createElement(Form, null, React.createElement(Form, null,
React.createElement(Form.Row, null, React.createElement(Form.Row, null,
React.createElement(Form.Label, null), React.createElement(Form.Label, null),
React.createElement(Form.Input, null) React.createElement(Form.Input, null)
) )
) )
@ -210,5 +210,5 @@ var content = (
``` ```
> NOTE: > NOTE:
> >
> JSX is similar to HTML, but not exactly the same. See [JSX gotchas](/react/docs/jsx-gotchas.html) for some key differences. > JSX is similar to HTML, but not exactly the same. See [JSX gotchas](/react/docs/jsx-gotchas.html) for some key differences.

Loading…
Cancel
Save