Skip to content
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

(JS-D011) Prefer destructring import #280

Open
elandamor opened this issue Mar 16, 2021 · 0 comments
Open

(JS-D011) Prefer destructring import #280

elandamor opened this issue Mar 16, 2021 · 0 comments

Comments

@elandamor
Copy link
Owner

Description

Prefer using direct destructuring imports ( example: import { Component } from 'react'), it is a good practice for improving readability and all the methods of React will not be imported and only import Component or Fragment methods. #### Example - The non-preferred way : ```js import React from …

Occurrences

There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/paisidevs/the-react-app/issue/JS-D011/occurrences/

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

No branches or pull requests

1 participant