ReScript HomeReScript Home
DocsPlaygroundBlogCommunityPackages
  • Playground
  • Blog
  • Community
  • Packages
  • X
  • Bluesky
  • GitHub
  • Forum
Language ManualAPISyntax LookupReact

Syntax Lookup

Enter some language construct you want to know more about.

Decorators

@@deprecated@@directive@@warning@as@dead@deprecated@deriving@doesNotThrow@genType@get@get_index@ignore@inline@int@jsx.component@live@meth@module@new@notUndefined@react.component@react.componentWithProps@return@scope@send@set@set_index@string@tag@taggedTemplate@this@throws@unboxed@unwrap@val@variadic@warning@bs.send.pipe@doesNotRaise@raises

Operators

!&&++->:=:>||

Arithmetic

%***+-/*.+.-./.

Bitwise

&&&<<>>>>>^^^|||~~~

Language Constructs

() => {}.../re/<MyComponent>_andexternalletlet recref~arg~arg=?

Control Flow

?:asyncawaitexceptionforif / elseswitchwhile

Types

'a'a.<+a>dicttypetype rec{ "key": type }{ ?key: type }{ key: type }{..}{.}

Patterns & Values

""``' '#valueMyVariant| (or-pattern)

Modules

includemodulemodule functionmodule typemodule type ofopen

Comments

/* ... *//** ... *//*** ... */// ...

Extension Points

%%private%%raw%debugger%identity%raw%todo%re

Special Values

__FILE____LINE_OF____LINE____LOC_OF____LOC____MODULE____POS_OF____POS__

© 2026 The ReScript Project

About
  • Community
  • ReScript Association
Find us on