<p>?? ??(<code>loading</code> ? <code>getContacts</code>)? ReactJS? ?? ??? ??? ????. ? ??? ?? ?? ???? ???? ??? ?? ?? ???? ??? ???? ?????. ??? ???? ???? </p>
<pre class="brush:php;toolbar:false;">const App = () =>
const [getContacts, setContacts] = useState([]);
const [loading, setLoading] = useState(false);
??(
<div className='?'>
<Navbar/>
<??>
<?? ??='/' ?? = {<="/contacts"/>? ??}/>
<?? ??='/contacts' loading= {loading} ???= {getContacts} ??= {<Contacts/>} />
<Route path="/contacts/add" ?? = {<AddContact/>}/>
<?? ?? = "/contacts/:contactId" ?? = {
??? <Route/>
?? ??? ???? ????.
???
??? ?? <Contacts/>
????
? ???? ???.
???
?? +0
P粉696891871
?? ??? ?? ??? ?? ?????:
???
?? +0
P粉696891871