And what alternatives do you have?
- Maybe jQuery? It looks great at the first glance. Generate some HTML on the backend and then add some “small” jQuery code. Suddenly you are duplicating all the backend logic in jQuery. Your “small” code is big now. With any non-trivial examples you have bugs. Have you ever tried to build an UI wizard this way?
- Let’s try Angular! You just need to learn about dependency injection, scopes, directives, services, factories, providers, config statements,
$scope.$apply, digest cycle, data flow… not to mention child scopes, isolated scopes, transcludent scopes… did I mentioned scopes? Don’t even look at Ember - the learning curve is the same there.
- Maybe something non-mainstream? There is a new framework.js every day. But do you want to be responsible for this choice? Are they going to support new browsers? What about mobile performance? Can you rely on authors that they won’t end maintaining it tomorrow? Do your team will agree it’s the best choice?
You need something better
It’s possible today!
Say hello to React.js!
- It’s possible to rely on the work of one of the biggest players on the market - Facebook. There are more - Netflix, Airbnb, Yahoo!
classsyntax and more. And you’ll get a ton of support from people using it today in production builds - it’s the default for them. And you can use it today - it’ll work in your browser thanks to transpilers.
- It’s possible to learn a technology you need in a matter of hours, not weeks. I built my first production UI in React in 7 hours, without the previous experience in this technology.
- It’s possible to use focused tools - React takes care of only the view layer. Use what works best for your other frontend concerns - like AJAX calls, models and so on.
What do we know?
We think that React.js is the best choice when it comes to build dynamic frontends. We used it in 5 big projects we were working on. We got over 2000+ hours of experience with it. And we want to share our knowledge with you - and we already do. We got a Rails meets React.js book, aimed to Ruby on Rails developers. We’ve created and maintain the React.js koans (2000+ stars on GitHub already!).
Practical examples all the way
What’s in it? Widgets - the basic blocks of your UI
React.js by example contains more than 180 pages of real-world examples. In every each of them we explain various mechanisms of React and ECMAScript 2015. With current version of book, you will learn how to create some popular widgets like:
- Password strength meter
- Telephone number prefix depending on selected country
- Slack inspired, quick channel switcher
- Button preventing duplicate submissions
- Placeholders that stay visible when writing the text
- Star icon selector like in Gmail
- Two connected dropdowns to pick a car brand and model
- Reddit-like list of articles with upvoting
- Dynamic invoice line items
- Table sortable by multiple columns
- Twitter Posting Box
- Credit Card Input
If you’ve never worked with React before, we prepared a starting chapter where we explain the basics of React.
You’ll learn 3 main techniques of working with React.js
- Start from the scratch and build multiple, simple React components, step by step.
- Start with HTML and wrap it all with a React component, slowly extracing data and behaviour out of it.
- Start with HTML and wrap a small part of it with the React component.
You’ll learn the best practices of working with React - stubbing data with default properties, placeholder behaviour handlers and more. You’ll learn how to use the powerful React ecosystem to make your work easier. There are examples using the great React-Bootstrap library which is a set of pre-defined components from the Bootstrap CSS framework you can use.
Get your copy now - over 600 copies already sold!
While we deeply believe that React by Example brings the best value to you today, there is no silver bullet when it comes to learning people. If you are disappointed with the content, there is a 100% refund policy. No questions asked.
You can read a free chapter about the password strength meter here.
Interested? Grab your copy now for the price of $49!