JSX错误 - Expected closing tag to match indentation of opening

154:9  error  Expected closing tag to match indentation of opening                           react/jsx-closing-tag-location
  161:9  error  The closing bracket must be aligned with the opening tag (expected column 17)  react/jsx-closing-bracket-location
  162:9  error  Expected closing tag to match indentation of opening                           react/jsx-closing-tag-location

This is a JSX format error, such as:

as.push(<a key={data.totalPage} className={style.paging_a_invalid}>
            {this.t('todo:nextPage')}
          </a> );

To be written as:

        as.push(
          <a key={data.totalPage} className={style.paging_a_invalid}>
            {this.t('todo:nextPage')}
          </a> );

I have to align it anyway

Guess you like

Origin blog.csdn.net/qq_38238041/article/details/87253392