diff --git a/README.md b/README.md index 26760d7..e5a0557 100644 --- a/README.md +++ b/README.md @@ -104,9 +104,9 @@ class Foo extends Component { Examples of **correct** code for this rule: ```jsx -const Foo = function (props) { +function Foo(props) { return
{props.foo}
; -}; +} ``` ```jsx diff --git a/public.package.json b/public.package.json index 0bb0ebd..85e41b9 100644 --- a/public.package.json +++ b/public.package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-react-prefer-function-component", - "version": "2.0.0-rc1", + "version": "2.0.0", "description": "ESLint plugin that prevents the use of JSX class components", "license": "MIT", "author": "Tate ",