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

Feature Request: Named JSX components

$
0
0

oh if it’s just a matter of how the function is called, you can choose whatever you want and just add a make function that points to the function name you’ve chosen, I think it does the trick:

module WithRecord = {
  type props = {name: string}

  let withRecord = props => {
    React.string(props.name)
  }

  let make = withRecord
}

playground link


Viewing all articles
Browse latest Browse all 2592

Trending Articles