All Questions
7 questions
0
votes
0
answers
148
views
Re-rendering behavior with class and functional component - ReactJS
I did a lot of research about Impure component vs Pure component, I am so confused about it and their behavior with Class & Functional components. So, please read carefully.
Question #1:
Is the ...
1
vote
1
answer
969
views
Data rerenders only once onClick using function with filter() in reactjs?
I have a navigation bar with 3 buttons (not the main navbar) that should filter menu items onto Pizzas, Sides, Drinks when clicked. When I click either button it only shows one of the filtered menu (...
1
vote
2
answers
2k
views
How to fetch data before render functionnal component in react js
Here Below my code I would like to retrieve all data before starting the render of my component, is there any way to do that in react ? I guess it's maybe a simple code line but as I'm new in coding I ...
0
votes
2
answers
32
views
I need a way to make the component render conditionally
I'm still new to react and I'm making a decision tree and I got the buttons to render and make them move down to the next question but now I want it to jump to certain parts of the array depending on ...
0
votes
3
answers
9k
views
What is the right place to call a function before render in React?
I have some issue on understandsing the lifecycle in React, so iam using useEffects() since i do understand that it was the right way to call a method before the component rendered (the replacement ...
1
vote
0
answers
330
views
Ionic React my component is not rendering on first viewing using map()
Okay, I am doing an application with Ionic and React. I have a problem when I'm trying to render a list of components with the map function. The problem is that the first time you visit the page ...
2
votes
1
answer
4k
views
Hook doesn't rerender component
I'm using React with React-Router-Dom and I don't know why my child component (functional component) does not re-render when the URL change. And I don't know why, when I visit a dynamic page for the ...