3 ms·
Is there any reason to use shorthand like mb instead of using the React standard marginBottom?
by cowmoo728 9y ago
Is there any reason to use shorthand like mb instead of using the React standard marginBottom?
- pygy_ 9y agoFWIW, 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'