Created
July 16, 2020 05:44
-
-
Save wildfrontend/c9eb45c6ddd8f77f0251333104ed00f8 to your computer and use it in GitHub Desktop.
create dymanic component
This file contains hidden or 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
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