Curly Brakets in Es2015 [duplicate]
This question already has an answer here : Where can I get info on the object parameter syntax for JavaScript functions? (1 answer) Closed 3 years ago . I was reading some tweets and I came across this tweet by Dan Abromov The syntax has me confused. const Font = ({ children }) => <Block... What is the point of { } around children? Clearly its not an object. I presume its ES2015 feature. Many thanks It's a destructuring binding pattern. It indicates that the parameter children should be bound to the value of the children property of an object passed to the function. Try this in an ES2015