The error is caused by the "react/function-component-definition" React linting rule from the ESLint plugin.