key
is pretty much crucial for state perservation in React. As of React 0.13 it can't do the following things:
- Clone state
<Comp key={1} /><Comp key={1} />
- Preserve component state across different parents:
# Start a 3 node cluster and join it together automatically. Uses | |
# local ephemeral disk for database storage. | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: couchdb | |
spec: | |
replicas: 3 | |
template: |
key
is pretty much crucial for state perservation in React. As of React 0.13 it can't do the following things:
<Comp key={1} /><Comp key={1} />