Skip to content

Commit

Permalink
docs(en): merge reactjs.org/main into zh-hans.reactjs.org/main @ d522a5f
Browse files Browse the repository at this point in the history
  • Loading branch information
QC-L authored May 29, 2022
2 parents df941b0 + 9653e7c commit 1863104
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion beta/src/pages/apis/useref.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ When you break these rules, your component might still work, but most of the new
### Manipulating the DOM with a ref {/*manipulating-the-dom-with-a-ref*/}
It's particularly common to use a ref to manipulate the [DOM](https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API). React has bulit-in support for this.
It's particularly common to use a ref to manipulate the [DOM](https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API). React has built-in support for this.
First, declare a <CodeStep step={1}>ref object</CodeStep> with an <CodeStep step={3}>initial value</CodeStep> of `null`:
Expand Down
2 changes: 1 addition & 1 deletion beta/src/pages/learn/start-a-new-react-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ npm start
* 一款 **代码检查工具(linter)** 用于检查你的代码是否包含常见错误。主流的代码检查工具有: [ESLint](https://eslint.org/)
* 一款 **测试框架(test runner)** 用于对你的代码进行测试。主流测测试框架:[Jest](https://jestjs.io/)

如果你喜欢从 0 开始搭建自己的 JavaScript 工具链,[请参阅这篇指南](https://blog.usejournal.com/creating-a-react-app-from-scratch-f3c693b84658),它重新编写了 Create React App 的功能。一个框架通常也会提供路由和数据获取的解决方案。在一个较大的项目中,你可能还需要用到类似 [Nx](https://nx.dev/react) 这样的工具来管理一个仓库中的多个包。
如果你喜欢从 0 开始搭建自己的 JavaScript 工具链,[请参阅这篇指南](https://blog.usejournal.com/creating-a-react-app-from-scratch-f3c693b84658),它重新编写了 Create React App 的功能。一个框架通常也会提供路由和数据获取的解决方案。在一个较大的项目中,你可能还需要用到类似 [Nx](https://nx.dev/react) 或者 [Turborepo](https://turborepo.org/) 这样的工具来管理一个仓库中的多个包。
2 changes: 1 addition & 1 deletion beta/src/pages/learn/your-first-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ img { margin: 0 10px 10px 0; }

### Your own component {/*your-own-component*/}

Write a component from scratch. You can give it any valid name and return any markup. If you're out of ideas, you can write a `Congratulations` component thats shows `<h1>Good job!</h1>`. Don't forget to export it!
Write a component from scratch. You can give it any valid name and return any markup. If you're out of ideas, you can write a `Congratulations` component that shows `<h1>Good job!</h1>`. Don't forget to export it!

<Sandpack>

Expand Down

0 comments on commit 1863104

Please sign in to comment.