I would name the custom hook module useNews.js (one file). That way, it is less confusing where to import the hook. For components, I prefer putting everything inside one module (e.g. Todo.jsx), as long as it stays under 500 lines of code.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I would name the custom hook module
useNews.js
(one file). That way, it is less confusing where to import the hook. For components, I prefer putting everything inside one module (e.g.Todo.jsx
), as long as it stays under 500 lines of code.