2018-01-09 15:36:42 +01:00

8 lines
110 B
JavaScript

function renderSome(a, b) {
if (a) {
return <div>{b}</div>
} else {
return <span>{b}</span>
}
}