sarah sarah - 1 year ago 100
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>)}}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download