[to fix] how does react circulate the data in the interface?

A single output data is OK, how to loop the data in the output interface? Solve?

original

<div id="demo"></div>
    <script type="text/babel">
        var UserGist = React.createClass({
            getInitialState:function(){
                return {
                    username: "",
                      lastGistUrl: ""
                }
            },
            componentDidMount:function(){
                $.get(this.props.source, function(result) {
                    var datas = result[0];
                    this.setState({
                        username: datas.owner.login,
                          lastGistUrl: datas.html_url
                    })
                }.bind(this));
            },
            render:function(){
                return (
                    <div>
                        <em>{this.state.username}</em> : {this.state.lastGistUrl}
                    </div>
                )
            }
        });
        ReactDOM.render(
            <UserGist source="https://api.github.com/users/octocat/gists" />,
            document.getElementById("demo")
        );
    </script>

success

<div id="demo"></div>
    <script type="text/babel">
        var UserGist = React.createClass({
            getInitialState:function(){
                return {
                    data:[]
                }
            },
            componentDidMount:function(){
                $.get(this.props.source, function(datas) {
                    this.setState({
                        data:datas
                    });
                }.bind(this));
            },
            render:function(){
                return (
                    <div>
                        {
                            this.state.data.map(function(item,index){
                                return (
                                    <div key={index}>
                                        

<em>{item.owner.login}</em> : {item.html_url}

</div> ) }) } </div> ) } }); ReactDOM.render( <UserGist source="https://api.github.com/users/octocat/gists" />, document.getElementById("demo") ); </script>
Feb.28,2021

var UserGist = React.createClass({
            getInitialState:function(){
                return {
                    datas: []
                }
            },
            componentDidMount:function(){
                $.get(this.props.source, function(datas) {
                    this.setState({
                        datas
                    })
                }.bind(this));
            },
            render:function(){
                return (
                    <div>
                        {
                            this.state.datas.map(item => (<div>
                                <em>{item.username}</em> : {item.lastGistUrl}
                            </div>))
                        }
                    </div>
                )
            }
        });
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be9a37-13ed5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be9a37-13ed5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?