diff --git a/rules/S6790/javascript/rule.adoc b/rules/S6790/javascript/rule.adoc index 2d665b995c8..826c292c931 100644 --- a/rules/S6790/javascript/rule.adoc +++ b/rules/S6790/javascript/rule.adoc @@ -11,11 +11,11 @@ Older React versions allowed the ref attribute to be a string, like `"textInput" [source,javascript,diff-id=1,diff-type=noncompliant] ---- const Hello = createReactClass({ - componentDidMount: function() { + componentDidMount() { const component = this.refs.hello; // Noncompliant // ... }, - render: function() { + render() { return