React design of a stateful list where every item depends on the previous one
I’m developing one of my projects with React, and I need to create some list where each item represents a table row, and is dependent on the previous line (and partially on the next line) – similar to how Excel or Google Sheet works.
Say each item has three fields, a
, b
and c
. Each item updates its own a
field depending on the a
field of the previous item, and updates its b
field depending on the c
field of the next one.