This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const NormalDiv = props => <div {...props} /> | |
const App = () => { | |
const [randomValue, setRandomValue] = React.useState(0); | |
return ( | |
<React.Fragment> | |
{new Array(50).fill(null).map((__, i) => ( | |
<NormalDiv key={i}>Hello World</NormalDiv> | |
))} | |
<button onClick={() => setRandomValue(Math.random())}>Force Rerender</button> | |
</React.Fragment> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment