All Questions
3 questions
3
votes
0
answers
119
views
NavigationBar component with hooks. Can it be made more readable/maintainable?
I wrote a NavigationBar component in React, using hooks, react-bootstrap, react-i18next and css. Now the component works as I expect it, but the code seems ugly. (I'm new with hooks)
Features:
It's ...
6
votes
1
answer
278
views
Testing higher order reducer with jest
I'm trying to understand conception of creating unit tests for the frontend applications.
I have created higher order reducer:
...
8
votes
3
answers
20k
views
Suppress console output from React in Jest testing output but not in browser output
I have a React app that I am testing with the built-in jest testing tools. In the process of debugging, I sometimes send data to the console (e.g. console.log, <...