Skip to content

Weather app- Iffah#6

Open
IffahA wants to merge 1 commit into
rocketacademy:mainfrom
IffahA:main
Open

Weather app- Iffah#6
IffahA wants to merge 1 commit into
rocketacademy:mainfrom
IffahA:main

Conversation

@IffahA
Copy link
Copy Markdown

@IffahA IffahA commented Dec 11, 2023

  • Added form for current weather
  • Added forecast

Comment thread src/App.jsx
import logo from "/logo.png";
import "./App.css";
import { useState, useEffect } from "react";
import axios from "axios";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work splitting the JSX into multiple components.

Comment thread src/App.jsx
let lat = "";
let lon = "";
const key = import.meta.env.VITE_SOME_WEATHER_API_KEY;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great use of .env to store your key

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Superb .then chain and use of returns

Comment thread src/forecast.jsx
@@ -0,0 +1,33 @@
import React from "react";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great implementation of the table, can remove the react import
consider using mui or bootstrap for easy styling and responsive sizes.

Comment thread src/weather.jsx
@@ -0,0 +1,15 @@
import React from "react";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can remove react import here

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.

2 participants