首页 > 解决方案 > 为什么我会收到“React:未终止的 JSX 内容”?

问题描述

import React from 'react';

const ImageLinkForm = () => {
    return (
        <div>
           <p className= 'f3'> 
           {'This Magic Brain will detect faces in your pictures. Give it a try'}
           </p>
           <div className= 'center'>
                <div className='pa4 br3 shadow-5 center'>
                    <input className= ' f4 pa2 w-70 center' type = 'tex' />
                    <button className= 'w-30 grow f4 link ph3 pv2 dib white bg-light-purple'>Detect</button>
                </div>     
           </div>
        </div>
    )
}


export default ImageLinkForm;

标签: reactjs

解决方案


推荐阅读