Skip to content

Commit

Permalink
#31 [ Router ] React Router
Browse files Browse the repository at this point in the history
  • Loading branch information
fdhhhdjd committed Sep 23, 2023
1 parent 0317cc4 commit 92a33ee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/routers/4.Nested Routes/layouts/BookLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ const BookLayout = () => {
<input
type="number"
value={number}
onChange={(e) => setSearchNumber({ n: e.target.value })}
onChange={(e) =>
setSearchNumber(
{ n: e.target.value },
{
replace: true,
}
)
}
/>
</>
);
Expand Down

0 comments on commit 92a33ee

Please sign in to comment.