Check out example codes for "html dash code". It will help you in understanding the concepts better.

Code Example 1

—

Code Example 2

To display a dash on browser, uses in html "—" , "—." 
or Unicode numeric entity of U+2014. eg. ajmal—the—developer instead
ajmal-the-developer. -keepCoding:)

Learn ReactJs, React Native from akashmittal.com