DEV Community

loading...

Discussion on: Learn React JS in 5 minutes — A tutorial for beginners

Collapse
karataev profile image
Eugene Karataev

Nice introduction to React.

The reason we’re writing {this.props.message} with curly braces is because we need to tell the JSX that we want to add a JavaScript expression. This is called escaping.

I don't get why this process is called escaping. I think the better name is interpolation.
Escaping for me is more like adding a slash before a quote symbol in a javascript string. Replacing special symbols in URL is also sounds like escaping.