10by10-react-app 中文文档教程

发布于 5年前 浏览 30 项目主页 更新于 3年前

反应样板横幅


Start your next react project in seconds
A highly scalable, offline-first foundation with the best DX and a focus on performance and best practices



Created by Max Stoiber and maintained with ❤️ by an amazing team of developers.

Features

Quick scaffolding
Create components, containers, routes, selectors and sagas - and their tests - right from the CLI!
Instant feedback
Enjoy the best DX (Developer eXperience) and code your app at the speed of thought! Your saved changes to the CSS and JS are reflected instantaneously without refreshing the page. Preserve application state even when you update something in the underlying code!
Predictable state management
Unidirectional data flow allows for change logging and time travel debugging.
Next generation JavaScript
Use template strings, object destructuring, arrow functions, JSX syntax and more.
Next generation CSS
Write composable CSS that's co-located with your components for complete modularity. Unique generated class names keep the specificity low while eliminating style clashes. Ship only the styles that are on the page for the best performance.
Industry-standard routing
It's natural to want to add pages (e.g. `/about`) to your application, and routing makes this possible.
Industry-standard i18n internationalization support
Scalable apps need to support multiple languages, easily add and support multiple languages with `react-intl`.
Offline-first
The next frontier in performant web apps: availability without a network connection from the instant your users load the app.
Static code analysis
Focus on writing new features without worrying about formatting or code quality. With the right editor setup, your code will automatically be formatted and linted as you work.
SEO
We support SEO (document head tags management) for search engines that support indexing of JavaScript content. (eg. Google)

但是等等……还有更多!

  • The best test setup: Automatically guarantee code quality and non-breaking changes. (Seen a react app with 100% test coverage before?)
  • Native web app: Your app's new home? The home screen of your users' phones.
  • The fastest fonts: Say goodbye to vacant text.
  • Stay fast: Profile your app's performance from the comfort of your command line!
  • Catch problems: AppVeyor and TravisCI setups included by default, so your tests get run automatically on Windows and Unix.

还有一个精彩视频,介绍如何在考虑可伸缩性的情况下构建 React.js 应用程序。 它为大多数样板文件的设计决策提供了基本原理。

关键词:React.js、Redux、热重载、ESNext、Babel、react-router、离线优先、ServiceWorker、styled-components、redux-saga、FontFaceObserver

Quick start

  1. Make sure that you have Node.js v8.15.1 and npm v5 or above installed.
  2. Clone this repo using git clone --depth=1 https://github.com/react-boilerplate/react-boilerplate.git <YOUR_PROJECT_NAME>
  3. Move to the appropriate directory: cd <YOUR_PROJECT_NAME>.
  4. Run npm run setup in order to install dependencies and clean the git repo.
    At this point you can run npm start to see the example app at http://localhost:3000.
  5. Run npm run clean to delete the example app.

现在你准备好发出隆隆声了!

请注意,此样板文件可用于生产,不适合初学者! 如果您刚刚开始使用 React 或 Redux,请改为参考 https://github.com/petehunt/react-howto。 如果你想要一个坚实的、经过实战考验的基础来构建你的下一个产品,并且有一些反应经验,这对你来说是一个完美的开始。

Documentation

Contributors

感谢这些优秀的人 (emoji key):

Max Stoiber
Max Stoiber

???? ???? ???? ???? ⚠️
Julien Benchetrit
Julien Benchetrit

???? ???? ???? ???? ????
Sara Federico
Sara Federico

???? ???? ???? ???? ????
Justin Greenberg
Justin Greenberg

???? ????
Jon Winn
Jon Winn

???? ????
Johan Meester
Johan Meester

???? ⚠️ ????
Yaroslav Kiliba
Yaroslav Kiliba

????
Glen Ihrig
Glen Ihrig

????
Somasundaram Ayyappan
Somasundaram Ayyappan

????
Oliver Turner
Oliver Turner

????
Samuel Sharpe
Samuel Sharpe

????
Mihir Karandikar
Mihir Karandikar

????
Vaibhav Verma
Vaibhav Verma

????
Sébastien Dubois
Sébastien Dubois

????
Chainarong Tangsurakit
Chainarong Tangsurakit

????
Amila Welihinda
Amila Welihinda

????

这个项目遵循 all-contributors 规范。 欢迎任何形式的贡献!

Supporters

没有这些了不起的人的支持,这个项目是不可能完成的。 成为赞助商 让您的公司出现在数以千计的参与 React 开发人员面前并帮助我们!


License

此项目已获得 MIT 许可,版权所有 (c) 2019 Maximilian 斯托伊伯。 有关详细信息,请参阅 LICENSE.md

react boilerplate banner


Start your next react project in seconds
A highly scalable, offline-first foundation with the best DX and a focus on performance and best practices



Created by Max Stoiber and maintained with ❤️ by an amazing team of developers.

Features

Quick scaffolding
Create components, containers, routes, selectors and sagas - and their tests - right from the CLI!
Instant feedback
Enjoy the best DX (Developer eXperience) and code your app at the speed of thought! Your saved changes to the CSS and JS are reflected instantaneously without refreshing the page. Preserve application state even when you update something in the underlying code!
Predictable state management
Unidirectional data flow allows for change logging and time travel debugging.
Next generation JavaScript
Use template strings, object destructuring, arrow functions, JSX syntax and more.
Next generation CSS
Write composable CSS that's co-located with your components for complete modularity. Unique generated class names keep the specificity low while eliminating style clashes. Ship only the styles that are on the page for the best performance.
Industry-standard routing
It's natural to want to add pages (e.g. `/about`) to your application, and routing makes this possible.
Industry-standard i18n internationalization support
Scalable apps need to support multiple languages, easily add and support multiple languages with `react-intl`.
Offline-first
The next frontier in performant web apps: availability without a network connection from the instant your users load the app.
Static code analysis
Focus on writing new features without worrying about formatting or code quality. With the right editor setup, your code will automatically be formatted and linted as you work.
SEO
We support SEO (document head tags management) for search engines that support indexing of JavaScript content. (eg. Google)

But wait… there's more!

  • The best test setup: Automatically guarantee code quality and non-breaking changes. (Seen a react app with 100% test coverage before?)
  • Native web app: Your app's new home? The home screen of your users' phones.
  • The fastest fonts: Say goodbye to vacant text.
  • Stay fast: Profile your app's performance from the comfort of your command line!
  • Catch problems: AppVeyor and TravisCI setups included by default, so your tests get run automatically on Windows and Unix.

There’s also a fantastic video on how to structure your React.js apps with scalability in mind. It provides rationale for the majority of boilerplate's design decisions.

Keywords: React.js, Redux, Hot Reloading, ESNext, Babel, react-router, Offline First, ServiceWorker, styled-components, redux-saga, FontFaceObserver

Quick start

  1. Make sure that you have Node.js v8.15.1 and npm v5 or above installed.
  2. Clone this repo using git clone --depth=1 https://github.com/react-boilerplate/react-boilerplate.git <YOUR_PROJECT_NAME>
  3. Move to the appropriate directory: cd <YOUR_PROJECT_NAME>.
  4. Run npm run setup in order to install dependencies and clean the git repo.
    At this point you can run npm start to see the example app at http://localhost:3000.
  5. Run npm run clean to delete the example app.

Now you're ready to rumble!

Please note that this boilerplate is production-ready and not meant for beginners! If you're just starting out with react or redux, please refer to https://github.com/petehunt/react-howto instead. If you want a solid, battle-tested base to build your next product upon and have some experience with react, this is the perfect start for you.

Documentation

Contributors

Thanks goes to these wonderful people (emoji key):

Max Stoiber
Max Stoiber

???? ???? ???? ???? ⚠️
Julien Benchetrit
Julien Benchetrit

???? ???? ???? ???? ????
Sara Federico
Sara Federico

???? ???? ???? ???? ????
Justin Greenberg
Justin Greenberg

???? ????
Jon Winn
Jon Winn

???? ????
Johan Meester
Johan Meester

???? ⚠️ ????
Yaroslav Kiliba
Yaroslav Kiliba

????
Glen Ihrig
Glen Ihrig

????
Somasundaram Ayyappan
Somasundaram Ayyappan

????
Oliver Turner
Oliver Turner

????
Samuel Sharpe
Samuel Sharpe

????
Mihir Karandikar
Mihir Karandikar

????
Vaibhav Verma
Vaibhav Verma

????
Sébastien Dubois
Sébastien Dubois

????
Chainarong Tangsurakit
Chainarong Tangsurakit

????
Amila Welihinda
Amila Welihinda

????

This project follows the all-contributors specification. Contributions of any kind welcome!

Supporters

This project would not be possible without the support of these amazing folks. Become a sponsor to get your company in front of thousands of engaged react developers and help us out!


License

This project is licensed under the MIT license, Copyright (c) 2019 Maximilian Stoiber. For more information see LICENSE.md.

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文