How safe is to use template literals

How safe is to use template literals
0

#1

Titles says it all, I just want to know if you would use template literals on production (given that it’s not supported in some browsers) or would you rather use normal strings?


#2

It depends. An important part of UI design is knowing who your users are. These decisions should be based on what browsers and what devices your users are interacting with your website from.


#3

You can always use a transpiler like Babel to make your code work with other browsers which do not yet support template literals.


#4

Yes, you are right. I don’t really care about IE, so maybe I’m good using template literals and arrow functions. But as @randelldawson mentioned, I should probably use a transpiler however I would like to avoid that for projects that are not too big.