May 2019
Intermediate to advanced
496 pages
10h 38m
English
Let's install React. That's actually two packages:
npm install --save react react-dom
React makes heavy use of JavaScript XML (JSX), which we need Babel to transpile for us. Babel also transpiles our modern ES6 and ES7 constructs for us.
Thankfully, Jest already includes Babel, so we just need to install presets and plugins:
npm install --save-dev @babel/preset-env @babel/preset-reactnpm install --save-dev @babel/plugin-transform-runtimenpm install --save @babel/runtime
A Babel preset is a set of plugins. Each plugin enables a specific feature of the ECMAScript standards, ...
Read now
Unlock full access