question: for third-party UI components or some inline styles that are dynamically added through js, how do you convert the default px unit to rem?
question: for third-party UI components or some inline styles that are dynamically added through js, how do you convert the default px unit to rem?
if you are vue, you can use px2rem-loader Loader to convert css and less/scss files.
as for inline styles in JS, it doesn't feel like a good way to handle it.