我使用Webpack绑定器,并为.fs、.scss、.css文件配置了适当的加载程序。现在,如何将样式表导入到基于寓言的React组件中?
open Fable.React
open Fable.React.Props
// open 'MyComponent.scss' ????
type MyComponent(props) =
inherit Component<unit, unit>(props)我知道要做到这一点没有直接的方法。但是没有关于同样的文件。有什么想法吗?
发布于 2020-03-08 05:47:20
Fable.Core.JsInterop.importAll "MyComponent.scss"https://stackoverflow.com/questions/60574556
复制相似问题