12 lines
275 B
TypeScript
12 lines
275 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>{feels}°C</p>
|
|
)
|
|
} |