From 90f4b005b6e69627c0ff14d3e92511b425c6c96e Mon Sep 17 00:00:00 2001 From: Shivam Mishra <41479737+codder-shivam@users.noreply.github.com> Date: Tue, 7 Jul 2020 16:30:02 +0530 Subject: [PATCH] Update importing-a-component.md added webpack information --- docusaurus/docs/importing-a-component.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docusaurus/docs/importing-a-component.md b/docusaurus/docs/importing-a-component.md index 2f4a4c56a69..204b87789db 100644 --- a/docusaurus/docs/importing-a-component.md +++ b/docusaurus/docs/importing-a-component.md @@ -4,6 +4,8 @@ title: Importing a Component --- This project setup supports ES6 modules thanks to webpack. +[Webpack](https://webpack.js.org/) supports the imports and exports syntax(of ES6) in sub modules by making a bundle of all files required in a single file, bundle.js. +And, you don't need to worry for the webpack setup. create-react-app will set up webpack for you. Awesome isn't it? While you can still use `require()` and `module.exports`, we encourage you to use [`import` and `export`](http://exploringjs.com/es6/ch_modules.html) instead.