If user writes for instead of htmlFor, warning is shown. I suppose autofocus instead of autoFocus should warn too.

render() {
          return <div>Child2</div>;
        }
      }
      class Child3 extends React.Component {
        render() {
          return <div onclick="1">Child3</div>;
        }
      }
      class Child4 extends React.Component {
        render() {
          return <div>Child4</div>;
        }
      }
      ReactDOMServer.renderToString(<Parent />, container);
      expect(console.error.calls.count()).toBe(2);
      expect(console.error.calls.argsFor(0)[0]).toContain('className');
      var matches = console.error.calls.argsFor(0)[0].match(/.*\(.*:(\d+)\).*/);
      var previousLine = matches[1];
      expect(console.error.calls.argsFor(1)[0]).toContain('onClick');
      matches = console.error.calls.argsFor(1)[0].match(/.*\(.*:(\d+)\).*/);
      var currentLine = matches[1];
      
      
      expect(parseInt(previousLine, 10) + 12).toBe(parseInt(currentLine, 10));
    });
  });
});