From c26d5043e92218fdce260cad3872873d6ceb53d2 Mon Sep 17 00:00:00 2001 From: Yen Truong Date: Wed, 6 Jul 2022 13:31:36 -0400 Subject: [PATCH] README changes --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dc9dbd8..a17a710 100644 --- a/README.md +++ b/README.md @@ -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