2
<div title="test"/>
⣿
Warning Errors
[E] Line 1, column 1:
This function call is at the top level and is expected to return `unit`. But it's returning `Jsx.element`.
In ReScript, anything at the top level must evaluate to `unit`. You can fix this by assigning the expression to a value, or piping it into the `ignore` function.
Possible solutions:
- Assigning to a value that is then ignored: `let _ = yourFunctionCall()`
- Piping into the built-in ignore function to ignore the result: `yourFunctionCall()->ignore`
Warning Errors
[E] Line 1, column 1:
This function call is at the top level and is expected to return `unit`. But it's returning `Jsx.element`.
In ReScript, anything at the top level must evaluate to `unit`. You can fix this by assigning the expression to a value, or piping it into the `ignore` function.
Possible solutions:
- Assigning to a value that is then ignored: `let _ = yourFunctionCall()`
- Piping into the built-in ignore function to ignore the result: `yourFunctionCall()->ignore`
ReScript Version
Syntax
Module-System
Loaded Libraries
- @rescript/react
- @rescript/core
- compiler-builtins
Warning Flags
+a-4-9-20-40-41-42-50-61-102