📜  react js 类组件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:24.986000             🧑  作者: Mango

代码示例2
// New component class starts here:
class Friend extends React.Component {
  render() {
    const friend = friends[0];
    return (
      

{friend.title}

); } }