v4 Create React + Redux app structure with build configurations. What’s new?
source link: https://www.tuicool.com/articles/hit/3YBzErU
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
v4 Create React + Redux app structure with build configurations. What’s new?
If you missed first part go here and figure out what is create-react-redux-app-structure about :sunglasses:
️What’s new?
In v4 there are a few new things, offline mode support, Webpack 4, internationalization .
:satellite: Offline
Determine if an application is an offline help you to behave differently. You will notify a user and try to save as much user actions as possible, and when you go back online execute them.
In app/pages/App.jsx
file you will find noInternet
service which helps you to find out when the internet is no accessible.
:musical_score: Webpack 4
Here you may find why Webpack 4 is cool and what’s new.
CommonsChunkPlugin was replaced by default API called optimization.splitChunks.
So now, out of the box you will have shared chunks automatically generated for you in a variety of scenarios.
:earth_africa: Internationalization
It is really good to have an application accessible for everyone. Check out file app/app.jsx
where you may find intl configuration.
:bow: Thank you
To all of those use create-react-redux-app-structure and help to make it better, faster and easier to use. Hope it help you to start a project faster and enjoy what you are doing :v:
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK