diff --git a/react.md b/react.md index 7626e5adfe..9a0d57a6c6 100644 --- a/react.md +++ b/react.md @@ -341,6 +341,8 @@ See: [Hooks at a Glance](https://reactjs.org/docs/hooks-overview.html) ### Declaring multiple state variables ```jsx +import React, { useState } from 'react'; + function ExampleWithManyStates() { // Declare multiple state variables! const [age, setAge] = useState(42);