This repository was archived by the owner on Apr 29, 2021. It is now read-only.
v2.0.1
- New Feature
- Throw an compile-time error when there is an unused JSX Element.
- Before, these would be silently removed from the output.
- Throw an compile-time error when there is an unused JSX Element.
- Bug Fix
- Properly detect the whether the current JSX Element is the "root"
element of the render function.- Before, any JSX Element that appeared laster in the same file
would be "root". Now, only elements that appear later in the
current function or it's contianing functions are roots.
- Before, any JSX Element that appeared laster in the same file
- Properly detect the whether the current JSX Element is the "root"
- Internal
- Test that compile-errors are thrown.