Skip to content

Instantly share code, notes, and snippets.



Last active Nov 29, 2019
What would you like to do?
import React from 'react';
const NormalDiv = props => <div {...props} />
const App = () => {
const [randomValue, setRandomValue] = React.useState(0);
return (
{new Array(50).fill(null).map((__, i) => (
<NormalDiv key={i}>Hello World</NormalDiv>
<button onClick={() => setRandomValue(Math.random())}>Force Rerender</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.