-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solution #1661
base: master
Are you sure you want to change the base?
Solution #1661
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done!
src/App.tsx
Outdated
export const App: React.FC = () => ( | ||
<div className="App"> | ||
<h1>Dynamic list of Goods</h1> | ||
const hadleClick = (fetchFromServer: () => Promise<Good[]>) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a typo here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work, approving:sparkles:
src/App.tsx
Outdated
fetchFromServer() | ||
.then(goods => { | ||
setCurrentGoods(goods); | ||
setErrorMessage(''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fetchFromServer() | |
.then(goods => { | |
setCurrentGoods(goods); | |
setErrorMessage(''); | |
setErrorMessage(''); | |
fetchFromServer() | |
.then(goods => { | |
setCurrentGoods(goods); |
DEMO LINK