score:4

Accepted answer
function App1() {
    return <Text test={1} />;
}

function App2() {
    const props = {test: 1};
    return <Text {...props} />;
}

score:1

const obj = {
  style = {
      background:'yellow'
    } 
}

<Component {...obj} />

Related Query

More Query from same tag