mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +00:00
refactor: improve imports
This commit is contained in:
parent
209f9b583b
commit
8df67d6fff
20 changed files with 67 additions and 86 deletions
|
|
@ -1,7 +1,5 @@
|
|||
local Charm = require(script.Parent.Charm)
|
||||
local React = if script.Parent:FindFirstChild("react")
|
||||
then require((script :: any).Parent.react) :: never
|
||||
else require(script.Parent.React)
|
||||
local React = require(script.Parent.React)
|
||||
|
||||
local listen = Charm.listen
|
||||
local useEffect = React.useEffect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue