Powerful ui components with encapsulation, also can custmize them for special requirement. e.g -encapsulate antd form component to a react component and reuse it in project. -use Less to manage css variables.
// Process application JS with Babel.
// The preset includes JSX, Flow, TypeScript, and some ESnext features.
{
... // code here
plugins: [
... // code here
[
require.resolve('babel-plugin-import'),// import
{
libraryName: 'antd', //expose antd
style: 'css'
}
],
],
... // code here
},
-Match Parent route and use child route to different pages and modules. -Use {this.props.children} shows different child components.