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

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