[SOLVED] Formik throwing Error: JSX props should not use functions in React

Issue This test.tsx: <Form> <Field name=’name’ validate={validateFunc}> {({ field, form }) => ( <FormControl isInvalid={form.errors.name && form.touched.name}> <FormLabel htmlFor=’name’>Default</FormLabel> <Input {…field} id=’name’ placeholder=’name’ /> <FormErrorMessage>{form.errors.name}</FormErrorMessage> </FormControl> )} </Field> yields Error: JSX props should not use functions react/jsx-no-bin I know why

Continue reading

[SOLVED] Why eslint consider JSX or some react @types undefined, since upgrade typescript-eslint/parser to version 4.0.0

Issue The context is pretty big project built with ReactJs, based on eslint rules, with this eslint configuration const DONT_WARN_CI = process.env.NODE_ENV === ‘production’ ? 0 : 1 module.exports = { extends: [ ‘eslint:recommended’, ‘plugin:jsx-a11y/recommended’, ‘plugin:react/recommended’, ‘prettier’, ‘prettier/@typescript-eslint’ ], plugins:

Continue reading