hyperdivision / nanomorph-guard

Guard element against being touched by nanomorph
ISC License
15 stars 2 forks source link

Data derived key use case #2

Open bcomnes opened 5 years ago

bcomnes commented 5 years ago

Does this cover the use case of a lists of components that map to a specific data object key?

e.g. React keys use case

Say you have a <ul> full of <li> components. You want to reorder the list and morph the change, the key would determine which component is which during the morphed re-order.

bcomnes commented 5 years ago

Nanomnorph may have this concept built in, but perhaps guard could be a better and more explicit use case for this than overloading the id field.

I need to read the nanomnorph code to see.