Home > Article > Web Front-end > React generates unordered list
1. Problem background
Use React to generate an unordered list. The list shows the four seasons of the year
2. Implementation source code
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>React之无序列表</title> <script type="text/javascript" src="../js/react.js" ></script> <script type="text/javascript" src="../js/react-dom.js" ></script> <script type="text/javascript" src="../js/browser.min.js" ></script> <script type="text/babel"> ReactDOM.render( <ul> <li>春季</li> <li>夏季</li> <li>秋季</li> <li>冬季</li> </ul>, document.getElementById('ul') ); </script> </head> <body> <p id="ul"></p> </body> </html>
3. Implementation result
The above is the content of React generating an unordered list. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!