Skip to content

Instantly share code, notes, and snippets.

@wildfrontend
Created July 16, 2020 05:44
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 wildfrontend/c9eb45c6ddd8f77f0251333104ed00f8 to your computer and use it in GitHub Desktop.
Save wildfrontend/c9eb45c6ddd8f77f0251333104ed00f8 to your computer and use it in GitHub Desktop.
create dymanic component
const App = () =>{
const [conunt,setConunt] = useState(1)
return (
<div>
{Array(conunt).fill(<RepeatCompnent/>)}
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment