Closed ldgmaia closed 1 year ago
This is a code style optimization.
Issue: When importing a component that has no content/children, ESLint is keep as instead of self closing it as .
Solution: Adding the rule ""react/self-closing-comp": "error"," to the ESLint config file will fix the self closing tag when saving the file.
This is a code style optimization.
Issue: When importing a component that has no content/children, ESLint is keep as instead of self closing it as .
Solution: Adding the rule ""react/self-closing-comp": "error"," to the ESLint config file will fix the self closing tag when saving the file.