2
<div title="test"/>
⣿
React
Create a React component called 'App' if you want to render it here, then enable 'Auto-run'.Console
Add some 'Console.log' to your code and enable 'Auto-run' to see your logs here.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
- compiler-builtins
- @rescript/core
Warning Flags
+a-4-9-20-40-41-42-50-61-102