DEV Community

Cover image for Different ways to Create Refs in React

Different ways to Create Refs in React

Sumit Kharche on February 01, 2020

While writing React apps we are always following the component-based architecture but there might be a situation where you may have to manipulate o...
Collapse
 
henriqued profile image
Henrique

I loved this article.
What you could do better is to add the language type to the code snippet, so it will automatically highlight some words. :D
like this

 it('works using ` ``js starting the snippet ')
also('looks like it works with the word "react", I didn`t test, but it should highlight the jsx too')
Enter fullscreen mode Exit fullscreen mode
Collapse
 
sumitkharche profile image
Sumit Kharche

Thanks Henrique for your great feedback. I will keep in mind to add the language type to the code snippet in my next articles.

Collapse
 
jashgopani profile image
Jash Gopani

Hi sumit, please add the language type to this article also, it is difficult to read code without syntax highlighting...🙃

Thread Thread
 
sumitkharche profile image
Sumit Kharche

Thanks for feedback Jash. Added language type to this article.

Thread Thread
 
jashgopani profile image
Jash Gopani

Thanks, Sumit! Appreciate the efforts 🙂