Skip to content Skip to sidebar Skip to footer
Showing posts with the label Template Literals

Defining A Function Inside A Template Literal

I'm using styled-components as a solution to styling for React. They've got a nice approach… Read more Defining A Function Inside A Template Literal

Why Can't String.raw End With A Backslash?

String.raw can be used to create a string that contains backslashes, without having to double up th… Read more Why Can't String.raw End With A Backslash?

Eslint Not Recognizing Template Literal

const perunString = perun.times(100).toFixed(2).toString(); return `%{perunString} %`; Which gives… Read more Eslint Not Recognizing Template Literal