Skip to content

Commit

Permalink
test: fix duplicate variable name in test app
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed Jun 5, 2023
1 parent afe12c9 commit bf2473b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React, { useEffect, useState } from 'react';
import {
makeReactive,
reactive,
Expand Down Expand Up @@ -32,8 +32,8 @@ export default makeReactive(function App() {

const count = useReference(0);
useComputed(() => count.value + 1);
const obj = useReactive({ a: 1 });
useReadonly(obj);
const obj2 = useReactive({ a: 1 });
useReadonly(obj2);
useShallowRef(0);
useShallowReactive({ b: 2 });
useShallowReadonly({ c: 2 });
Expand Down

0 comments on commit bf2473b

Please sign in to comment.