Skip to content

Conversation

@DancingWhiteFire
Copy link
Collaborator

No description provided.

@DancingWhiteFire DancingWhiteFire changed the title Chapter1 animal fun facts review Apr 19, 2025
@DancingWhiteFire DancingWhiteFire changed the title review review about lesson_1 Apr 19, 2025
onClick={displayFact}
/>
);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you could use map instead of a for...in loop.
and then key must be string or number.

import './index.css';
import App from './App';
import './styles.css';
import animalFacts from './components/animalFacts';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

component name must be Upper case.

import { animals } from './../js/animals';
import React from 'react';

const title = '';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

didn't have to use constant.
so these are unused and then background is img tag.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants