DEV Community

Discussion on: React: Using State in Functional Components

Collapse
 
codingknite profile image
Joel P. Mugalu

Great article Austin. How do you write your code snippets with multiple colors?

Collapse
 
austinbrownopspark profile image
Austin Brown • Edited

Thanks! And it's super simple, just 3 backticks immediately followed by the word javascript on a single line before your code and then 3 more backticks on a single line after the code and then the colors happen automatically

Collapse
 
codingknite profile image
Joel P. Mugalu

Thanks 😁 I just in cooperated it in my article. Looks way better