+
You clicked {count} times
+
+
+ );
+}
+```
+{: data-line="5,10"}
+
+Hooks are a new addition in React 16.8.
+
+See: [Hooks at a Glance](https://reactjs.org/docs/hooks-overview.html)
+
+### Declaring multiple state variables
+
+```jsx
+function ExampleWithManyStates() {
+ // Declare multiple state variables!
+ const [age, setAge] = useState(42);
+ const [fruit, setFruit] = useState('banana');
+ const [todos, setTodos] = useState([{ text: 'Learn Hooks' }]);
+ // ...
+}
+```
+
+### Effect hook
+
+```jsx
+import React, { useState, useEffect } from 'react';
+
+function Example() {
+ const [count, setCount] = useState(0);
+
+ // Similar to componentDidMount and componentDidUpdate:
+ useEffect(() => {
+ // Update the document title using the browser API
+ document.title = `You clicked ${count} times`;
+ });
+
+ return (
+