JannikUekoetter / react-and-morty

0 stars 0 forks source link

04 Fetch data from `rickandmortyapi` #4

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

Description

After creating the first page, we want now to fetch the data from the rickandmorty API and render the result (the characters) here.

ToDos

JannikUekoetter commented 2 years ago

Fragen:

kai-franke commented 2 years ago

Sorry, sehe jetzt erst diese Fragen.

IMG aus API: Wenn Du über Deine Characters magst, dann kannst Du auch noch das Prop „image“ übergeben. „image“ kommt als String, den Du in der Card Komponente dem img-Tag als ’src’ gibst (src={image}).

List für die Darstellung: Ja, eine ul als Container und dann li-Elemente als Cards wäre semantisch wahrscheinlich ideal.

Darstellung per CSS: Das kannst Du beispielsweise in den styled-components machen.

Am 30.09.2022 um 19:24 schrieb Jannik Uekötter @.***>:

Fragen:

Wie ziehe ich das IMG aus der API?

Ist List das richtige Format für die Darstellung der Inhalte der API?

Wird die Darstellung im Anschluss über das CSS geregelt? Also z.B. Darstellung als Grid?

@cosinushh https://github.com/cosinushh vielleicht kannst du das hier ja sehen wenn ich einen Pull Request erstelle?

— Reply to this email directly, view it on GitHub https://github.com/JannikUekoetter/react-and-morty/issues/4#issuecomment-1263825149, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARE5ODP447WV2EQKDIYBHJTWA4O3FANCNFSM6AAAAAAQYYVUZM. You are receiving this because you were mentioned.