react插值末端的思考

import React, { Component } from 'react';

export default class index extends Component {
  render() {
    const abc = (
      <div>
        <div>1</div>
        <div>2</div>
        <div>3</div>
      </div>
    );
    const bac = (
      <div>
        <div>1</div>
        <div>2</div>
        <div>3</div>
      </div>
    );
    console.log(abc);
    //注定了 这个对象只能被插值,不能在加工 abc和bac如何做运算
    return (
      <div>
        index
        {abc}
      </div>
    );
  }
}

posted on 2024-10-20 17:15  漫思  阅读(6)  评论(0编辑  收藏  举报

导航