Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Tailwind CSS: adding `className` to components

$
0
0

So, I explored changing the types in rescript-react-native to a record (named _props to not conflict with the props type created by @react.component). Now this seems to work.

Are there any downsides to using records instead of function arguments in rescript-react-native?

And why does @react.component create a generic props< 'children, ...>?

module View = {
  type p = {
    ...ReactNative.View._props,
    ...styledProps,
  }
  let make: React.component<p> = styled(ReactNative.View.make)
}

Viewing all articles
Browse latest Browse all 2592

Trending Articles