2 ms·
FWIW, marginBottom is not a React "standard", it's a DOM getter on the style object: document.body.style.marginTop = '200px' The non-camel-case version wo
by pygy_ 9y ago
FWIW, marginBottom is not a React "standard", it's a DOM getter on the style object:
document.body.style.marginTop = '200px'
The non-camel-case version works as well (in modern browsers, there was a time when browsers supported either one or the other):
document.body.style['margin-top'] = '400px'