Legacy React addon for performing shallow comparison of props and state to optimize component rendering performance
Overall
score
99%
Build a React component that displays and monitors zero values with signed distinction, properly detecting when a zero value changes sign between positive and negative zero.
Create a React class component called ZeroSignChecker that:
value which can be any number including +0 and -0The component should display:
@generates
import React from "react";
/**
* A React component that displays zero values with sign distinction
* and optimizes rendering by detecting changes in zero sign.
*
* @class ZeroSignChecker
* @extends {React.Component}
*/
class ZeroSignChecker extends React.Component {
/**
* Renders the component displaying the value and its zero sign if applicable
* @returns {React.Element}
*/
render() {
// Returns JSX
}
}
export default ZeroSignChecker;Provides the React component framework.
Provides shallow comparison support for performance optimization.
Install with Tessl CLI
npx tessl i tessl/npm-react-addons-shallow-comparedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10