You are currently looking at the v6.0 - v8.2 docs (Reason v3.6 syntax edition). You can find the latest manual page here.
(These docs are equivalent to the old BuckleScript docs before the ReScript rebrand)
Import & Export
// Inside School.re let studentMessage = Student.message;
The above code refers to the
message binding in the file
Student.re. Every ReScript file is also a module, so accessing another file's content is the same as accessing another module's content!
A ReScript project's file names need to be unique.
By default, every file's type declaration, binding and module is exported, aka publicly usable by another file. This also means those values, once compiled into JS, are immediately usable by your JS code.
To only export a few selected things, use an interface file.