Skip to content
This repository was archived by the owner on Aug 17, 2021. It is now read-only.

Conversation

@veksi
Copy link
Contributor

@veksi veksi commented Sep 5, 2019

  1. Added Navbar component & related basic test
  2. Added About container component & related test
  3. Added Home container component & related test
  4. Implemented basic react-router example with lazy loading route
  5. Added basic example of useEffect hook and API call with local state update
  6. Refactored starter component architecture

@veksi veksi requested a review from DarkoKukovec September 5, 2019 13:45
import { Navbar } from './Navbar';

it('renders without crashing', () => {
const div = document.createElement('div');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't something like const footer = create(<Footer />); also work instead of rendering into the DOM?

margin-bottom: 100px;
`;

const navigationLink = css`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The class variables should be named consistently, so better to add the Class suffix here also


const About: React.FC<{}> = () => {
const [title, setTitle] = React.useState('');
const [content, setContent] = React.useState('');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also handle the loading and error states. That's quite simple with the useAsync hook from react-use

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants