showName: function () {
}
function showName () {
}
class Name extends Component {
showName: function () {
//....
}
}
class Name extends Component {
function showName () {
//....
}
}
{[ 'left', 'right' ].map(n => (
<div
id={n}
key={n}
onMouseOver={updateDark}
onMouseLeave={updateDark}
className={dark && dark !== n ? 'dark' : ''}
></div>
))}
{
['left', 'right'].map(function (n) {
return React.createElement('div', {
id: n,
key: n,
onMouseOver: updateDark,
onMouseLeave: updateDark,
className: dark && dark !== n ? 'dark' : ''
});
});
}
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");