DEV Community

Discussion on: How to cancel all subscriptions and asynchronous tasks in a useEffect cleanup function?

Collapse
 
insidewhy profile image
insidewhy

You should put your code samples between two sets of three backticks so that they show up correctly. You can also put the name of the programming language after the first set of backticks to enable syntax highlighting. This works in GitHub comments/readmes etc. also.