You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Vim](https://www.vim.org/)—是一個高度可配置的文字編輯器,可以非常有效的建立和修改任何類型的文本。它作為「vi」被內建在大多數 UNIX 系統和蘋果 OS X 系統中。
32
-
=======
33
-
*[WebStorm](https://www.jetbrains.com/webstorm/) is an integrated development environment designed specifically for JavaScript.
34
-
*[Sublime Text](https://www.sublimetext.com/) has support for JSX and TypeScript, [syntax highlighting](https://stackoverflow.com/a/70960574/458193) and autocomplete built in.
35
-
*[Vim](https://www.vim.org/) is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as "vi" with most UNIX systems and with Apple OS X.
> If your ESLint preset has formatting rules, they may conflict with Prettier. We recommend to disable all formatting rules in your ESLint preset using [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) so that ESLint is *only* used for catching logical mistakes. If you want to enforce that files are formatted before a pull request is merged, use [`prettier --check`](https://prettier.io/docs/en/cli.html#--check) for your continuous integration.
If you're starting a new project, we recommend to use a toolchain or a framework. These tools provide a comfortable development environment but require a local Node.js installation.
* How to start a project with a fully-featured framework
42
-
* What's inside popular toolchains and frameworks
13
+
* How toolchains are different from frameworks Toolchain 和 framework 有什麼差異
14
+
* How to start a project with a minimal toolchain 如何從最小的 toolchain 開始一個新專案
15
+
* How to start a project with a fully-featured framework 如何從功能完整的 framework 開始一個新專案
16
+
* What's inside popular toolchains and frameworks 流行的 toolchain 和 framework 內有些什麼
43
17
44
18
</YouWillLearn>
45
19
46
-
## Choose your own adventure {/*choose-your-own-adventure*/}
20
+
## 選擇你自己的冒險 {/*choose-your-own-adventure*/}
47
21
48
-
React is a library that lets you organize UI code by breaking it apart into pieces called components. React doesn't take care of routing or data management. This means there are several ways to start a new React project:
If you're **learning React,** we recommend [Create React App](https://create-react-app.dev/). It is the most popular way to try out React and build a new single-page, client-side application. It's made for React but isn't opinionated about routing or data fetching.
> Create React App doesn't handle backend logic or databases. You can use it with any backend. When you build a project, you'll get a folder with static HTML, CSS and JS. Because Create React App can't take advantage of the server, it doesn't provide the best performance. If you're looking for faster loading times and built-in features like routing and server-side logic, we recommend using a framework instead.
86
-
87
-
### Popular alternatives {/*popular-alternatives*/}
If you're looking to **start a production-ready project,**[Next.js](https://nextjs.org/) is a great place to start. Next.js is a popular, lightweight framework for static and server‑rendered applications built with React. It comes pre-packaged with features like routing, styling, and server-side rendering, getting your project up and running quickly.
108
-
109
-
The [Next.js Foundations](https://nextjs.org/learn/foundations/about-nextjs) tutorial is a great introduction to building with React and Next.js.
110
-
111
-
### Popular alternatives {/*popular-alternatives*/}
You may prefer to create and configure your own toolchain. A toolchain typically consists of:
70
+
## 客製化 Toolchain {/*custom-toolchains*/}
132
71
133
-
* A **package manager** lets you install, update, and manage third-party packages. Popular package managers: [npm](https://www.npmjs.com/) (built into Node.js), [Yarn](https://yarnpkg.com/), [pnpm](https://pnpm.io/).
134
-
* A **compiler** lets you compile modern language features and additional syntax like JSX or type annotations for the browsers. Popular compilers: [Babel](https://babeljs.io/), [TypeScript](http://typescript.org/), [swc](https://swc.rs/).
135
-
* A **bundler** lets you write modular code and bundle it together into small packages to optimize load time. Popular bundlers: [webpack](https://webpack.js.org/), [Parcel](https://parceljs.org/), [esbuild](https://esbuild.github.io/), [swc](https://swc.rs/).
136
-
* A **minifier** makes your code more compact so that it loads faster. Popular minifiers: [Terser](https://terser.org/), [swc](https://swc.rs/).
137
-
* A **server** handles server requests so that you can render components to HTML. Popular servers: [Express](https://expressjs.com/).
138
-
* A **linter** checks your code for common mistakes. Popular linters: [ESLint](https://eslint.org/).
139
-
* A **test runner** lets you run tests against your code. Popular test runners: [Jest](https://jestjs.io/).
72
+
你可能更喜歡建立和設置你自己的 toolchain。Toolchain 通常包括:
140
73
141
-
If you prefer to set up your own JavaScript toolchain from scratch, [check out this guide](https://blog.usejournal.com/creating-a-react-app-from-scratch-f3c693b84658) that re-creates some of the Create React App functionality. A framework will usually also provide a routing and a data fetching solution. In a larger project, you might also want to manage multiple packages in a single repository with a tool like [Nx](https://nx.dev/react).
0 commit comments