React Core & Hooks (407 Qs)•General
How do you apply vendor prefixes to inline styles in React?
mid LevelCode ExamplereactGeneral
React does not apply vendor prefixes automatically. You need to add vendor prefixes manually.
jsx
<div
style={{
transform: "rotate(90deg)",
WebkitTransform: "rotate(90deg)", // note the capital 'W' here
msTransform: "rotate(90deg)", // 'ms' is the only lowercase vendor prefix
}}
/>