score:10
Accepted answer
the problem here is your component name starting with a lowercase letter.
see eslint-plugin-react-hooks code source
/**
* checks if the node is a react component name. react component names must
* always start with a non-lowercase letter. so `mycomponent` or `_mycomponent`
* are valid component names for instance.
*/
function iscomponentname(node) {
if (node.type === 'identifier') {
return !/^[a-z]/.test(node.name);
} else {
return false;
}
}
Source: stackoverflow.com
Related Query
- Warning messaged from ESLint when using React Hooks
- How to prevent child component from re-rendering when using React hooks and memo?
- Warning when using react hooks in HoC
- React 16: Call children's function from parent when using hooks and functional component
- How to pass state from class components to global state when using react hooks for global state management
- React dependency warning from console log when using useEffect
- Getting a type error when try to display data from API using react hooks
- How to fix missing dependency warning when using useEffect React Hook
- TypeError dispatcher.useState is not a function when using React Hooks
- Prevent react component from rendering twice when using redux with componentWillMount
- Is there any way to see names of 'fields' in React multiple state with React DevTools when using 'useState' hooks
- How to fix React 15.5.3 PropTypes deprecated warning when using create-react-app
- Why eslint-plugin-react-hooks doesn't warn when using react hooks conditionally?
- How to pass the match when using render in Route component from react router (v4)
- CDN links for React packages and how to import it when using react using the scripts from CDN
- React hooks - remove from react-router location state when we refresh page
- How to handle side effects when migrating from Redux to React Context API + hooks
- Test a onClose callback from dialog when using material UI & react testing library?
- How to execute store.unsubscribe from useEffect using React hooks and Redux
- Event listener functions changing when using React hooks
- Cannot read property of undefined when using react hooks
- React v16- d3 v4, when using mouse from d3-selection will get, TypeError: Cannot read property 'sourceEvent' of null?
- react warning cannot set state when using promises
- Getting the ref from a dynamic component when using Redux, React and react-router-dom 4.x
- react i18next "hooks" error when using t() from useTranslation()
- Warning when using color control in React JS
- Refresh Screen A when goBack with React Native using Hooks
- React Native refresh content when user hits back button - using Hooks
- Trigger child function from parent component using react hooks
- React remove object from list of objects without unique value, using hooks
More Query from same tag
- How do I reference a local image in React?
- Two children with the same key in React
- Is there a way to persist Firebase Auth state in capacitor?
- Create React app with React-Snapshot Pre-Rendering static files
- How Does a React Snippet get Turned into Browser Javascript?
- How to check Dynamic Checkbox in React JS
- history.push is changing url but not rendering component in react
- Can you clear setInterval if a condition is met? without using componentDidMount?
- Add text inside doughnut chart from chart js-2 in react
- React bootstrap Nav.Link only showing as active on second click
- Unable to use a hook in a component
- retrieving data from firestore using uid react
- How to change background colors in Reactstrap
- Condition state clear on componentDidMount
- Nextjs active navigation bar with styled-components
- How to convert a html template to react?
- How to export all components in index.js?
- React: Is there a way to append the same instance of a component to two separate child components?
- SonarLint : Code Smell : Local variables should not be declared and then immediately returned or thrown
- How to display html link inside table cell using reactjs material-table
- React useState - update all object values to true
- ReactJS -> how do I make restricted routes?
- Why does the size of div decrease on adding a horizontal scrollbar in CSS of React project?
- How to pass custom Icon to DatePicker in mui 5
- Adding transition to drawimage
- How does the react library rerender components
- How to Set Conditional Payload in Reducer React Typescript
- In React, how to debug when await chain halts in the middle?
- Struggle with typing redux-form component
- React Redux Lifecycle Props