mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-07 20:10:57 +01:00
fix not removing React from scope
This commit is contained in:
parent
533fbd9718
commit
560d2c71b4
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ Would be equivalent to:
|
|||
```luau
|
||||
local React = require("@React")
|
||||
local createElement, useState, useEffect, useContext, useRef = React.createElement, React.useState, React.useEffect, React.useContext, React.useRef
|
||||
React = nil
|
||||
```
|
||||
|
||||
Types could also be imported, which was previously impossible:
|
||||
|
|
Loading…
Add table
Reference in a new issue