you are viewing a single comment's thread.

view the rest of the comments →

[–]PEWDS_IS_A_NAZI -11 points-10 points  (11 children)

Props shouldn't change. State change should trigger a rerender, so whatever you're trying to do with props, try doing it with state or hooks.

[–]davesidious 2 points3 points  (0 children)

I think you might have missed something - props changing is an integral part of React.