Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSX dismiss an arrow (>) in HTML

In normal javascript, I can easily add an arrow like:

<button>Next > </button> 

but I try that is JSX, the arrow will be ignored/dismissed. Hmm is there any way I can enable that?

like image 626
Nately Jamerson Avatar asked Dec 21 '25 15:12

Nately Jamerson


1 Answers

Because JSX works directly with HTML so you would need to use HTML symbol codes for reserved letters.

You could use

<button>Next &gt; </button>

or

<button>Next &#62; </button>

Check out the full list here: http://www.ascii.cl/htmlcodes.htm

like image 150
Timothy Quang Phuc Nguyen Avatar answered Dec 23 '25 05:12

Timothy Quang Phuc Nguyen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!