This commit is contained in:
guanghechen 2024-07-10 16:34:28 +08:00
parent cfa6efc6ed
commit 94d944bd68
25 changed files with 131 additions and 118 deletions

View file

@ -8,9 +8,9 @@ import React from "react";
* @see https://www.npmjs.com/package/@yozora/tokenizer-text
*/
export class TextRenderer extends React.Component<Text> {
public override shouldComponentUpdate(nextProps: Readonly<Text>): boolean {
const props = this.props;
return props.value !== nextProps.value;
public override shouldComponentUpdate(nextProperties: Readonly<Text>): boolean {
const properties = this.props;
return properties.value !== nextProperties.value;
}
public override render(): React.ReactElement {