Created
September 18, 2021 13:21
-
-
Save thanhlmm/6ca3448562975d07aa54c9b6af38b8b1 to your computer and use it in GitHub Desktop.
React props spread
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
const a = { | |
foo: "bar" | |
}; | |
<Hello {...a} /> | |
<Hello foo="bar" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment