Exports/Imports
Learn how to write exports/imports cleanly and succinctly.
Usage of import and export
Writing full imports can sometimes be quite cumbersome, especially if we need to import many components in the same directory. Imagine we have a components/common
directory, and there we have a few components such as DatePicker
, Autocomplete
, Editor
, and Counter
. If we need to import all of them somewhere, then it would look something like this:
Access this course and 1400+ top-rated courses and projects.