Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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'


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: