In a React Native app, I saw the following code:
<View {...input}/>
where
input = {style: {...}}
In the first line, they use the spread operator but then enclose it within curly braces. Wouldn’t this be like writing
<View {style: {...}}/>
instead of the correct
<View style={...}/>