python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Smooth animation when turning off a conditionally rendered component in React
My App.js is as below
export const App = () => {
const [toggled, setToggled] = useState(false);
const [ordering, setOrdering] = useState(false);
const handleColorModeClick = () => {
s...

moys
Votes: 0
Answers: 1
how can we use two fetch requests at a time
I am trying to do a prediction on a model using a rest API and show the output on frontend using react.
If the prediction is 1 then I need to display the second prediction using conditional rendering....
harsh
Votes: 0
Answers: 1
How to test a component that renders conditional display?
I try to test a functional component which use useSelector hook to get data from state and renders according to the state.
I wrote a test for that component. It seems logical to me and it works. But I...

nagehan
Votes: 0
Answers: 0
React conditional render for logged in / logged out User only updates state with browser refresh
I'm building a React app using hooks and functional components for the front end to a Rails backend API with Cookie / Session authentication. Everything is working well as far as getting users logged ...
firesoflife
Votes: 0
Answers: 1