You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import {flavors} from "https://gist.githubusercontent.com/BurntCaramel/d9d2ca7ed6f056632696709a2ae3c413/raw/0234322cf854d52e2f2bd33aa37e8c8b00f9df0a/1.js";
96
+
import reactDownloads from "https://api.npmjs.org/downloads/point/last-week/react";
97
+
import image from "https://embed.filekitcdn.com/e/fEiVX4E3EdQhij4RMaw92W/pziZhFNQLKJtwNHMTkDnTD";
96
98
97
99
const a = 1 + 1 + flavors.length;
98
100
99
101
function useTick() {
100
102
returnuseReducer(n=>n+1,0);
101
103
}
102
104
103
-
function useDebouncer(duration) {
105
+
function useDebouncedTick(duration) {
104
106
const[count,tick]=useTick();
105
107
106
108
constcallback=useMemo(()=>{
@@ -121,122 +123,19 @@ function useDebouncer(duration) {
121
123
return[count,callback];
122
124
}
123
125
124
-
export default function App() {
125
-
const[count,tick]=useDebouncer(1000);
126
-
return<>
127
-
<div>Hello!!{flavors.join(" ")}</div>
128
-
<buttononClick={tick}>Click</button>
129
-
<div>{count}</div>
130
-
</>;
131
-
}
132
-
`.trim();
133
-
134
-
value = `
135
-
import {flavors} from "https://gist.githubusercontent.com/BurntCaramel/d9d2ca7ed6f056632696709a2ae3c413/raw/0234322cf854d52e2f2bd33aa37e8c8b00f9df0a/1.js";
0 commit comments