react-design-editor
react-design-editor copied to clipboard
[Refactor] Refactor Code Smells reported by ReactSniffer tool
I had made a recent contribution that was accepted. This is all part of work related to a subject in my degree.
I'm a student at Universidade Federal do Ceará and the work was about refactoring an open source system and submitting these changes later.
To identify code smells I used the tool. This tool identified 6 types of code smells:
- Any Type;
- Direct DOM Manipulation;
- JSX outside the render method;
- Large Component;
- To many props;
- Large File;
- Missing Union Type Abstraction.
Therefore, the refactored code smells were - Any Type, JSX outside the render method, Large Component, Too Many Props and Missing Union Type Abstraction.
Here is a spreadsheet with the reported code smells, as well as the components that were accused by the tool. Those that were refactored are painted green.