reasonml / reason-react

Reason bindings for ReactJS

Home Page:https://reasonml.github.io/reason-react/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document the [@react.component {props}] payload

yawaramin opened this issue · comments

Currently it's not documented that the attribute can take a props payload that sets the name of the component prop in JS output. E.g., [@react.component {props: myProps}] will output JS: function Component(myProps) {...}.

Seems like a good place to add this would be the [@react.component] section of the doc page: https://reasonml.github.io/reason-react/docs/en/components#reactcomponent