Syntax Lookup
Enter some language construct you want to know more about.
This is the @react.componentWithProps decorator.
The @react.componentWithProps
decorator is used to annotate functions that are React components which take in a record type as prop.
This decorator will ensure your component gets an uppercased name.
Note The
@react.componentWithProps
decorator requires the react-jsx or jsx config to be set in yourrescript.json
to enable the required React transformations.