escaping less than great than signs in react 1

escaping less than great than signs in react

{"<"} Less than, {">"} greater than

Here is what the above code is Doing:
1. We’re creating a variable called “html” and setting it equal to a string.
2. We’re using the triple-quote syntax to create a multi-line string.
3. We’re using the string’s “format” method to insert the values of the variables “less_than” and “greater_than” into the string.

Similar Posts