Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Use import statements to selectively include functionality #36

Open
dylankb opened this issue Mar 31, 2018 · 0 comments
Open

Use import statements to selectively include functionality #36

dylankb opened this issue Mar 31, 2018 · 0 comments

Comments

@dylankb
Copy link
Member

dylankb commented Mar 31, 2018

The idea is you export a larger object, and then only import the functions you need. For example, import some-function from fileUtils instead of importing the whole fileUtils function that returns the entire object of functions like we currently have. Modern libraries have this setup so can do things like import { prop-types} from React, etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant