const element = <h1>Hello, world!</h1>;
function App() {
return (
<div>
<h1>안뇽</h1>
</div>
)
}
or
function App() {
return (
<Fragment>
<h1>안뇽</h1>
</Fragement>
)
}
or
function App() {
return (
<>
<h1>안뇽</h1>
</>
)
}
function App() {
return (
<div>
<h1>안뇽 내 이름은 {name}이야.</h1>
</div>
)
}
function App() {
const style = {
backgroundColor: 'green',
fontSize: '12px'
}
return (
<div style={style}>Hello, GodDaeHee!</div>
);
}
or
function App() {
return (
<div style={{color:"red"}}>Hello, GodDaeHee!</div>
);
}
function App() {
return (
<div className='text-hello'>Hello, GodDaeHee!</div>
);
}
출처👇