sarah sarah - 11 months ago 67
React JSX Question

How to create an ordered numbered list in react

I need to create an ordered list in react and I am doing following in the render()

render() {
<div key ={category.index}> =>
<li key={questionlist.key}>{questionlist.description}</li>)}

Answer Source

Use an ordered list to get the numbering

render() {
     { =>
       <li key={questionlist.key}>{questionlist.description}</li>)}}