Till innehållet
CTO Michel Zetterberg

Create React App 2.0

Create React App 2.0 släpptes den 1 oktober och innehåller riktigt intressanta uppdateringar i samma paket.
10 oktober 2018
React logga mot lila bakgrund
React logga

Vi kör idag 1.x versionen i flera av våra projekt och en hel del av uppdateringarna kommer göra projekten gott. En del av uppdateringarna förutsätter att man inte använder server side rendering. Oavsett så låter det riktigt bra!

Få en snabb överblick vad som är nytt i 2.0:

🎉 More styling options: you can use Sass and CSS Modules out of the box.

🐠 We updated to Babel 7, including support for the React fragment syntax and many bugfixes.

📦 We updated to webpack 4, which automatically splits JS bundles more intelligently.

🃏 We updated to Jest 23, which includes an interactive mode for reviewing snapshot

💄 We added PostCSS so you can use new CSS features in old browsers.

💎 You can use Apollo, Relay Modern, MDX, and other third-party Babel Macros transforms.

🌠 You can now import an SVG as a React component, and use it in JSX.

🐈 You can try the experimental Yarn Plug’n’Play mode that removes node_modules.

🕸 You can now plug your own proxy implementation in development to match your backend API.

🚀 You can now use packages written for latest Node versions without breaking the build.

✂️ You can now optionally get a smaller CSS bundle if you only plan to target modern browsers.

👷‍♀️ Service workers are now opt-in and are built using Google’s Workbox.

Läs hela artikeln om uppdateringen på React.js blog.

Hur kan vi hjälpa dig? Fyll i formuläret, mejla eller ring.

We ahead ABÅsögatan 119 Stockholm