Skip to content

Commit

Permalink
README changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed Jul 6, 2022
1 parent 98ae1d5 commit c26d504
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,11 @@ function SearchBar() {
}
```

## Class Components
## `AnswersHeadlessContext`
### Class Components

For users that want to use class components instead of functional components, you can use the `AnswersHeadlessContext` directly to dispatch actions and receive updates from state.

## `AnswersHeadlessContext`

As an example, here is our simple SearchBar again, rewritten as a class using `AnswersHeadlessContext`.

```tsx
Expand Down

0 comments on commit c26d504

Please sign in to comment.