Skip to content

Commit

Permalink
End of video
Browse files Browse the repository at this point in the history
  • Loading branch information
samselikoff committed May 18, 2022
1 parent 71fc6f0 commit bc2ce2b
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 73 deletions.
16 changes: 16 additions & 0 deletions STEPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Thank Adam for letting me use Tailwind UI!

# Step

```js
let [sort, setSort] = useState(null);
```

# Step

```js
let sortedPeople = people.sort((a, b) => a[sort]?.localeCompare(b[sort]));
```
Expand Down Expand Up @@ -59,3 +65,13 @@ useEffect(() => {
}
}, [navigate, sort]);
```
# Step
```js
<Link to={`/?sort=${newSort}`} />
```
```js
let [searchParams] = useSearchParams();
```

0 comments on commit bc2ce2b

Please sign in to comment.