← Back to index

How to create a multiline string in ReScript

Sat Dec 12 2020

ReScript version: bs-platform@8.4.2

Multiline strings are created by enclosing the string with backticks.

For example:

let message = `
Hello
World
`

References

String Interpolation
https://rescript-lang.org/docs/manual/latest/primitive-types#string-interpolation