Skip to content

Commit b67824a

Browse files
Removed duplicate useEffect in dynamic-device-pixel-ratio docs (#515)
1 parent 8183206 commit b67824a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/advanced-examples/dynamic-device-pixel-ratio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
In the following example, we'll render our Unity Application using a device pixel ratio which matches the device pixel ratio of the browser. We'll create an event listener using a media matcher which will update the device pixel ratio of the Unity Application when the device pixel ratio changes.
44

55
```jsx showLineNumbers title="App.jsx"
6-
import React, { useState, useEffect, useEffect } from "react";
6+
import React, { useState, useEffect } from "react";
77
import { Unity, useUnityContext } from "react-unity-webgl";
88

99
function App() {

0 commit comments

Comments
 (0)