Skip to content

Commit 004e3fa

Browse files
refactor: remove Routes from uses params example (#56)
1 parent e82777d commit 004e3fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ Solid.js reactive changes are pretty instantaneous, so there is rarely need to u
8686
```tsx
8787
it('uses params', async () => {
8888
const App = () => (
89-
<Routes>
89+
<>
9090
<Route path="/ids/:id" component={() => <p>Id: {useParams()?.id}</p>} />
9191
<Route path="/" component={() => <p>Start</p>} />
92-
</Routes>
92+
</>
9393
);
9494
const { findByText } = render(() => <App />, { location: "ids/1234" });
9595
expect(await findByText("Id: 1234")).not.toBeFalsy();

0 commit comments

Comments
 (0)