Skip to content

Instantly share code, notes, and snippets.

@r-mc2
r-mc2 / eslint-plugin-react_no-typos_error-sample.js
Created January 17, 2019 17:15
Example React Component that shows the "no-typos" false-positive error with "eslint-plugin-react"
import React, { Component } from "react";
import { string, func } from "prop-types";
class Sample extends Component {
constructor(props) {
super(props);
this.state = {
newName: props.name
};