Skip to content

Update importing-a-component.md #9275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docusaurus/docs/importing-a-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down