Development tools
"Shawn, today I would like to discuss about the tools that we have used until now while building our React apps today. React is a very small library, which does one thing right—rendering the UI. However, we had to use a lot of other tools with React throughout our journey until now. Today is the day to discuss everything about them." said Mike.
"Awesome, Mike! I am ready as always. Let's get rolling." exclaimed Shawn.
Using Babel for ES6 and JSX
"Shawn, we have used ES6 or ES2015 code since the beginning. We are also very bullish about using JSX. Sometimes, we have also used ES7 code, such as the function bind
operator in our latest Cats Pinterest project."
// src/Home.js
class Home extends React.Component {
componentDidMount() {
this.timer = setInterval(::this.generateCats, 1000);
}
}
"Yes, Mike. I loved the conciseness of these new features." said Shawn.
"However, current browsers still don't understand...