We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7001a55 commit 981a34aCopy full SHA for 981a34a
src/app/page.tsx
@@ -1,4 +1,5 @@
1
import { useEffect, useState } from "react";
2
+import WeatherWidget from "./weather-widget";
3
4
export default function Home() {
5
const [isFeatureXEnabled, setIsFeatureXEnabled] = useState(false);
@@ -10,11 +11,7 @@ export default function Home() {
10
11
return (
12
<div className="container">
13
<h1>Welcome to Next.js + Playwright</h1>
- {isFeatureXEnabled ? (
14
- <p>🎉 Feature X is ON</p>
15
- ) : (
16
- <p>🚫 Feature X is OFF</p>
17
- )}
+ {isFeatureXEnabled ? <WeatherWidget /> : <p>🚫 Feature X is OFF</p>}
18
</div>
19
);
20
}
0 commit comments