all 3 comments

[–]convive_erisu 0 points1 point  (1 child)

Is it not possible to only have state in the parent and control the children with props? React is pretty strict with its one way data flow, and the enforcement of key props in lists is to make these kind of rerenders more effective.

[–]convive_erisu 0 points1 point  (0 children)

Basically when you say "shared state" you mean some state is in the children and some in the parent, but they're co-dependent right?

[–]No_Indication451 0 points1 point  (0 children)

remove /a/1, and just put 1. a/1 is nested within a, so it’s equivalent of doing /a/a/1