Class components #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Task: https://github.com/rolling-scopes-school/tasks/blob/master/react/modules/tasks/class-components.md

Screenshot:
Done 14.07.2025 / deadline 14.07.2025
Score: 75 / 100
Eslint is set up (15/15)
Prettier is set up (15/15)
Husky is set up (0/15)
Page is split into at least two sections, top one has Search input and "Search" button, main section displays the list of results from the selected api (https://www.swapi.tech/) when page is opened for the first time (loader should be shown while app makes a call to the api) (20/20)
When user types something to the Search input and clicks "Search" button, a loader is displayed and the list is changed according to the response results for a provided search term (10/15)
The search term typed into the Search input is saved in the LS when user clicks on "Search" button (check it by closing the tab and open the app in the new one - the initial call should contain previously entered search term) (10/15)
Application is wrapped with ErrorBoundary, which logs error to a console and shows a fallback UI. There should be a button to throw an error (5/10)