docs(nx): update 04-connect-to-api.md

This commit is contained in:
Andy Van Slaars 2019-11-08 13:05:44 -05:00 committed by Victor Savkin
parent 965901f4e5
commit 82b96dece0

View File

@ -5,7 +5,7 @@ Real-world applications do not live in isolationthey need APIs to talk
**Let's change our application to fetch the data from the API.**
```typescript jsx
export const App = () => {
const App = () => {
const [todos, setTodos] = useState<Todo[]>([]);
useEffect(() => {
@ -39,6 +39,8 @@ export const App = () => {
</>
);
};
export default App
```
!!!!!