Gatsby: [Question] Can I ask why you prefer using template strings instead of general quote

Created on 15 Dec 2018  路  2Comments  路  Source: gatsbyjs/gatsby

Just curious, can you please tell me why you prefer using template strings(``) instead of general quote('') in all of the codebase.

It's rare and weird for me to see that require() a module using template strings(``), are there some benefits from using template strings ?

Summary

Just a simple question :)

question or discussion

All 2 comments

Hi! Good question - here's an article on why template strings are always preferable: https://ponyfoo.com/articles/template-literals-strictly-better-strings

@jgierer12 Thanks for your explanation :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TuckerWhitehouse picture TuckerWhitehouse  路  69Comments

kuworking picture kuworking  路  115Comments

KyleAMathews picture KyleAMathews  路  97Comments

jp887 picture jp887  路  98Comments

Jivings picture Jivings  路  112Comments