Relative Content

Tag Archive for reactjsnext.jsreact-hooksnext.js14

Using same components in a page cause bugs in Next.js

I use Next.js latest version. I have a component called “InputMedia”. I use this component 3 times in a page with different props. My problem is: State update is always being done by the first component’s information. Even though I click 3rd component always the first component’s state changes. I tried to send type as a prop, didn’t work. I tried to send important things as arguments didn’t work again.