(1) All prop names follow camelCase
(2) Number attributes use curly braces
(3) Boolean 'true' can be written with just the property name.
'False' should be written with curly braces.
(4) The 'class' attributes is written as 'className'
(5) In-line styles are provided as objects.
<input maxlength="5">
<input maxLength={5}
<form autocapitalize />
<form autoCapitalize />
<form novalidate>
<form noValidate>
<input optimum="50" />
<meter optimum={50} />
function App() {
return <input spellCheck={false} />;
}
// 인풋 박스의 맞춤법 검사 빨간 줄 안 뜨게 함
<input spellcheck="true" />
<input spellCheck />
<input spellcheck="false" />
<input spellCheck={false} />
<div class="divider" />
<div className="divider" />
<li class="item" />
<li className="item" />
<a style="text-decoration : 'none'; padding-top : '5px';" />
<div style={{ textDecoration:'none', paddingTop:'5px' }} />
⇠ prop : {{ }}// 4) Create a component
function App() {
return (
<div className="wrapper">
<textarea
readOnly={false}
maxLength={"3"}
spellCheck={false}
style={{ backgroundColor: "gray" }}
/>
</div>
);
}