Skip to content

Commit

Permalink
Fix typo in readonly-atoms page
Browse files Browse the repository at this point in the history
  • Loading branch information
biyamn committed Oct 30, 2023
1 parent 178e40e commit 4590058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/quick-start/readonly-atoms/code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ const textAtom = atom('readonly atoms')
const uppercase = atom((get) => get(textAtom).toUpperCase())
export default function Page() {
const [lowecaseText, setLowercaseText] = useAtom(textAtom);
const [lowercaseText, setLowercaseText] = useAtom(textAtom);
const [uppercaseText] = useAtom(uppercase);
const handleClick = (e) => setLowercaseText(e.target.value);
return (
<div className="app">
<input value={lowecaseText} onChange={handleClick} />
<input value={lowercaseText} onChange={handleClick} />
<h1>{uppercaseText}</h1>
</div>
)
Expand Down

0 comments on commit 4590058

Please sign in to comment.