React:启动并运行

react

I'm a little late (like, omgbbq, 2 months late) with this announcement, but here goes: I published my new book, called "React: Up and Running". Go get it everywhere where books are sold and learn React from the ground up!

宣布这一消息我有点晚了(比如omgbbq,晚了2个月),但事情变得如此:我出版了我的新书,名为“ React:启动并运行” 。 到任何出售书籍的地方去获得它,并从头开始学习React!

I've been working with React for a while now and thought I have something to offer to people getting started. Especially people who know JavaScript but haven't been keeping up with every little new ECMAScript feature or every new build/package tool as of late. It can get overwhelming when you start reading a tutorial or article and figure out you need to setup a bunch of stuff just to get off the ground.

我已经在React上工作了一段时间,并认为我可以为入门的人提供一些帮助。 尤其是那些了解JavaScript但又没有跟上每个小新ECMAScript功能或每个新的构建/打包工具的人。 当您开始阅读教程或文章并弄明白您需要设置一堆东西才能​​入门时,它可能会变得不知所措。

That's why I took a different approach - start and go on for 3 chapters with 0 setup and extraneous tools. You learn React proper and that's it! All it takes an HTML page and a text editor. Just like the old days.

这就是为什么我采用不同的方法的原因-从0设置和其他工具开始并继续进行3章。 您将适当地学习React,仅此而已! 所有这些都需要一个HTML页面和一个文本编辑器。 就像过去一样。

Chapter 4 is the first one to add new syntax - the optional, but common JSX. Still though you manage by with a simple HTML page and in-page code transformation.

第4章是第一个添加新语法-可选的,但通用的JSX 。 尽管您可以通过简单HTML页面和页面内代码转换来进行管理。

The rest of the book, once you have a firm grasp of the basics and the JSX syntax continues on to create a more real-life app, while still building on the code from chapters 1-4. The app is a CRUD-type app called whinepad.com.

本书的其余部分,一旦您牢牢掌握了基础知识,并且JSX语法继续创建了一个更加真实的应用程序,同时仍然以第1-4章的代码为基础。 该应用程序是一个名为whinepad.com的CRUD类型的应用程序。

While developing this app you learn about:

在开发此应用程序时,您将了解:

  • Packaging and deployment (DIY style) 打包和部署(DIY样式)
  • Linting (with ESLint)

    整理 (使用ESLint )

  • Adding typechecks (React propTypes and Flow)

    添加类型检查(React propTypes和Flow )

  • Organizing data movement in the app (DIY Flux implementation)

    组织应用中的数据移动(DIY Flux实施)

  • Testing (using jest)

    测试(使用笑话 )

  • ES6 (and beyond) syntax (using Babel)

    ES6(及以后)语法(使用Babel )

  • ... ...

The DIY bits are in there instead of simply using out-of-the-box WebPack or Redux just because there are so many options out there and I think it's best to know the behind-the-scenes so you can make an informed choice (or go DIY) with confidence.

DIY位在其中,而不仅仅是使用开箱即用的WebPack或Redux,因为那里有很多选择,我认为最好了解幕后情况,以便您做出明智的选择(或自信地进行DIY)。

That's pretty much it, go get the book, let me know what you think. I'll probably post a little more about the writing/reviewing/updating process, trials and tribulations over at my other personal blog.

差不多了,去拿书,让我知道您的想法。 我可能会在其他个人博客上发布有关写作/审查/更新过程,试用和磨难的更多信息。

So far the book has gotten some pretty nice reviews on Amazon and I'm grateful to people who take time to write up a review that helps potential readers decide if this is the best book for them.

到目前为止,这本书在Amazon上获得了不错的评价,我感谢那些花时间编写评论的人,这些评论可以帮助潜在读者确定这是否是最适合他们的书。

To highlight a few:

要强调一些:

M Schmeets:

施密特 ( M Schmeets) :

My favorite book on React. One of the things I find frustrating about so much of the React, and Angular2, material is that it always starts with all kinds of setup Grunt, Gulp, Bablel, Webpack, ES6, all of that is important on it's own, but you can't get to the framework without going through it. This book is different. It introduces React, just React, and does it with plain ol' ES5. You learn about the components, the lifecycle, what React is all about. Then he moves on to JSX, and starts to include the build process. The teaching apps get more involved and things build on earlier material. I also have to say that the choice of examples, while fairly simple, do a great job of showing "hows and whys" of React. Not a big book, but it's full of good material!

我最喜欢的关于React的书。 我发现令React和Angular2这么多的事情感到沮丧的一件事是,它总是始于各种设置Grunt,Gulp,Bablel,Webpack,ES6,所有这些本身都很重要,但是您可以不经历框架就无法进入框架。 这本书是不同的。 它引入了React,只是React,并使用普通的ES5来实现。 您将了解组件,生命周期以及React的全部含义。 然后他继续使用JSX,并开始包括构建过程。 教学应用程序参与度更高,事物建立在早期资料上。 我还必须说,示例的选择虽然相当简单,但却可以很好地展示React的“方式和原因”。 这不是一本大书,但里面充满了好材料!

... or ...

... 要么 ...

Alan McConnell

艾伦·麦康奈尔

As an Engineering Manager at Facebook I can attest to the fact that this is a simple, step-by-step guide for producing a React development workflow that fairly closely matches what we use at FB everyday to build some of the most used web products in the world. Highly recommended. If you have moderate knowledge of the Javascript language you can be up and running within a day with this text.

作为Facebook的工程经理,我可以证明这是一个简单的分步指南,用于生成一个React开发工作流程,该工作流程与我们每天在FB上使用的内容非常接近,以构建一些最常用的Web产品。世界。 强烈推荐。 如果您对Java语言有一定的了解,则可以在一天之内启动并运行此文本。

Also if you'd tolerate a not-so-humble brag... I've been looking at the Amazon's top JS books rating. The book broke the top 20 and pretty much stayed there since publishing and last week it even went into top 10. Of all JS books, not just React! Definitely #1 React book though ????

另外,如果您愿意接受如此谦虚的吹嘘,那么我一直在看亚马逊的JS顶级书评。 该书突破了前20名,并且自出版以来几乎一直保持在前十位,上周甚至进入了前10名。在所有JS书中,不仅仅是React! 绝对是#1 React book????

Tell your friends about this post on Facebook and Twitter

在Facebook和Twitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/react-up-and-running/

以上是 React:启动并运行 的全部内容, 来源链接: utcz.com/z/383228.html

回到顶部