πCustomizing Styles
Last updated
// Before
const appId = 'my_app'
<UIProvider appId={appId} antd={{ prefixCls: appId }}>
<p className="text-color">A text with scoped styling</p>
</UIProvider>
// After
<section id="my_app">
<p class="text-color">A text with scoped styling</p>
</section>// Before
.text-color {
color: "cyan";
}
// After
#my_app .text-color {
color: "cyan"
}