ReactJS
React.js is a JavaScript based Framework that handles the view layer for web and mobile apps. It allows developers to create large applications that can change data, without reloading the page. React.js is declarative, allowing for designing simple views for each state in which react will efficiently update and render only the changed components. Declarative views make the code more predictable and easier to debug. React is also component-based, which allows for encapsulated components to manage their own state, then compose them to make complex UIs. The main purpose of React.js is to be fast, scalable and simple.
Authors
ReactJS - Scalability
ReactJs - Quality And Evolution
ReactJS - From Vision to Architecture
ReactJs - Product Vision and Problem Analysis
Contributions
Merge & Rmv unused and duplicate style selector
After running code-quality analysis tool SonarQuabe , it pointed us to multiple bad code-smells in the React project.
This PR is to fix some in the time-slicing
directory.
Code Smells Resolved:
- Empty CSS selector (.archand)
- Duplicate CSS selector (label)
Refactor attribute behavior
After running code-quality analysis tool SonarQuabe , it pointed us to multiple bad code-smells in the React project.
This PR is to fix some in the attribute-behaviour
directory.
Code Smells Resolved:
- Removed Useless Variable assignment
ssrHasSameBehaviour
is immediately reassigned outside of the if statement.
- Immediately returned
completedHashes
rather than assigning then returning the variable. - Replaced for loop with for-of loop to improve readability.
- Removed unused import
createElement
Refactor duplicate test code.
After running code-quality analysis tool SonarQuabe , it pointed us to multiple bad code-smells in the React project.
This PR is to fix some in the nested-acts.js tests
directory.
Code Smells Resolved:
- Refactored duplicated code used in the two test cases to a single function which the tests call. To improve readability and make it more modular.
Refactor standalone smells
After running code-quality analysis tool SonarQuabe , it pointed us to multiple bad code-smells in the React project.
This PR is to fix some in the devtools/standalone
directory.
Code Smells Resolved:
- Removed duplicated
.IconButton
selector which also had duplicate style rules. - Removed
any
type annotation used outside of a Typescript file.
Refactor triggerErrorAndCatch function
After running code-quality analysis tool SonarQuabe , it pointed us to multiple bad code-smells in the React project.
This PR is to fix some in the fixtures/error-handing/index.js
directory.
Code Smells Resolved:
- Refactored duplicated code.
triggerErrorAndCatch()
was function identical in 2 places in the file. It’s been refactored to a function and called when needed. To improve readability and maintainability.