FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
uniswap_interface_sc/apps/web/src/setupRive.ts at main · stringcode86/uniswap_interface_sc · GitHub
stringcode86
uniswap_interface_sc
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
uniswap_interface_sc
/
apps
/
web
/
src
/
setupRive.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 382 Bytes
Breadcrumbs
uniswap_interface_sc
/
apps
/
web
/
src
/
setupRive.ts
Copy path
File metadata and controls
13 lines (11 loc) · 382 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
//
@ts
-ignore this file is here but ts doesn't like it
import
riveWASMResource
from
'@rive-app/canvas/rive.wasm'
import
{
RuntimeLoader
}
from
'@rive-app/react-canvas'
import
{
useEffect
}
from
'react'
// Default export as a React component
export
default
function
SetupRiveComponent
(
)
{
useEffect
(
(
)
=>
{
RuntimeLoader
.
setWasmUrl
(
riveWASMResource
)
}
,
[
]
)
return
null
}
Back
|
FazBrowse Home
|
New Git URL