ChrQR
83b337db03
All checks were successful
Docker Build & Publish / Build Docker (push) Successful in 1m9s
12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
import { useContext } from "react";
|
|
import { WeatherContext } from "./WeatherNow";
|
|
|
|
|
|
|
|
export default function Temperature() {
|
|
const { weather } = useContext(WeatherContext)
|
|
const feels = weather.current.apparent_temperature;
|
|
return (
|
|
<p className="text-2xl mt-2">{feels}°C</p>
|
|
)
|
|
} |