Skip to content

Instantly share code, notes, and snippets.

@zjhiphop
Created November 23, 2021 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zjhiphop/60f2c7c47e482ee4e90c35baa7fcd0ab to your computer and use it in GitHub Desktop.
Save zjhiphop/60f2c7c47e482ee4e90c35baa7fcd0ab to your computer and use it in GitHub Desktop.
Thinking in ReactJS

when keys using dynamic value, then the view will be add more and more when rerender

tableHeads.map(item => {
  return <View key={new Date()} style={styles.tableHeaderItem}>
    ....
  </View>
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment