mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
fix some links
This commit is contained in:
@@ -71,8 +71,8 @@ We've found that the best solution for this problem is to generate markup direct
|
||||
|
||||
**JSX lets you write JavaScript function calls with HTML syntax.** To generate, say, a link using pure JavaScript you'd write: `React.DOM.a({href: 'http://facebook.github.io/react/'}, 'Hello React!')`. With JSX this becomes `<a href="http://facebook.github.io/react/">Hello React!</a>`. We've found this has made building React apps easier and designers tend to prefer the syntax, but everyone has their own workflow, so **JSX is not required to use React.**
|
||||
|
||||
JSX is very small; the "hello, world" example above uses every feature of JSX. To learn more about it, see [JSX in depth](./02.1-jsx-in-depth.md). Or see the transform in action in [our live JSX compiler](/react/jsx-compiler.html).
|
||||
JSX is very small; the "hello, world" example above uses every feature of JSX. To learn more about it, see [JSX in depth](./02.1-jsx-in-depth.html). Or see the transform in action in [our live JSX compiler](/react/jsx-compiler.html).
|
||||
|
||||
JSX is similar to HTML, but not exactly the same. See [JSX gotchas](./02.2-jsx-gotchas.md) for some key differences.
|
||||
JSX is similar to HTML, but not exactly the same. See [JSX gotchas](./02.2-jsx-gotchas.html) for some key differences.
|
||||
|
||||
The easiest way to get started with JSX is to use the in-browser `JSXTransformer`, but in production you'll want to precompile your code using our command-line [react-tools](http://npmjs.org/package/react-tools) package.
|
||||
@@ -167,4 +167,4 @@ efforts include:
|
||||
- JSX neither provides nor requires a runtime library.
|
||||
- JSX does not alter or add to the semantics of JavaScript.
|
||||
|
||||
JSX is similar to HTML, but not exactly the same. See [JSX gotchas](./02.2-jsx-gotchas.md) for some key differences.
|
||||
JSX is similar to HTML, but not exactly the same. See [JSX gotchas](./02.2-jsx-gotchas.html) for some key differences.
|
||||
|
||||
@@ -50,7 +50,7 @@ React.renderComponent(
|
||||
|
||||
## More about refs
|
||||
|
||||
To learn more about refs, including ways to use them effectively, see our [more about refs](./07.1-more-about-refs.md) documentation.
|
||||
To learn more about refs, including ways to use them effectively, see our [more about refs](./07.1-more-about-refs.html) documentation.
|
||||
|
||||
## Component lifecycle
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ componentDidUpdate(object prevProps, object prevState, DOMElement domNode)
|
||||
componentWillUnmount()
|
||||
```
|
||||
|
||||
See the [working with the browser](./07-working-with-the-browser.md) documentation for more details on these lifecycle methods.
|
||||
See the [working with the browser](./07-working-with-the-browser.html) documentation for more details on these lifecycle methods.
|
||||
|
||||
## DOM differences
|
||||
|
||||
|
||||
Reference in New Issue
Block a user