DEV Community

Discussion on: Understanding useContext in React

Collapse
 
betula profile image
Slava Birch

Great article! Good explanation for better understanding.
I will allow myself to make one suggestion to your article.
To enable syntax highlighting in a code section, you needs to open your code block as

```javascript
code
```
Its will look likes

import { useState, createContext } from 'react';
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ilizette profile image
Elizabeth

Thank you so much