Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { useState } from "react";
- import ReactDOM from "react-dom";
- import Auth from './Auth'
- import "./styles.css";
- function App() {
- let [light, setLight] = useState(1);
- const setOff = () => setLight(0);
- const setOn = () => setLight(1);
- let fillColor = light === 1 ? "#ffbb73" : "#000000";
- return (
- <div className="App">
- <div>
- <Auth fillColor={fillColor} />
- </div>
- </div>
- );
- }
- const rootElement = document.getElementById("root");
- ReactDOM.render(<App />, rootElement);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement