From c78c3ca686798b51139524959e6e9d11604969af Mon Sep 17 00:00:00 2001 From: Edemone Date: Sat, 21 Sep 2019 13:16:34 +0000 Subject: [PATCH] Add extra on the choice of class component over function component --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8c62f30e..2958d996 100644 --- a/README.md +++ b/README.md @@ -443,6 +443,7 @@ 6. ### When to use a Class Component over a Function Component? If the component needs *state or lifecycle methods* then use class component otherwise use function component. + *However, from React 16.8 with the addition of Hooks, you could use state , lifecycle methods and other features that were only available in class component right in your function component.* 7. ### What are Pure Components?