Me learning react like an absolute chungus
Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- function sendRequest(data: string, cb: (response: any) => void) {
- // ... sending a request with "data"
- return cb({data: 'Hi there!'});
- }
-
- sendRequest('Send this!', (response) => {
- console.log(response);
- return true;
- });
|