Skip to content

Tag: reactjs

React How to re render map function on change of variabel?

Here is an excerpt which should show my problem. In my project I do something with the grid and now I want to reset it, but I dont know how it works because if I change the grid variable, the .map() function doesnt re render. I hope you understand my problem and you can help me. That is my code:

Change class component to functional component with props

I am trying to convert a class component to functional component but i keep getting problem, I think im doing it wrongly Class Component: This is what i try to do as my Functional Component (Please note I dont understand function component just yet) Its not giving me the desired output, I have tried tweaking …