Skip to content

AR7predator/Toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Toggle

import React, { useState } from 'react';

const App = () => { const [backgroundColor, setBackgroundColor] = useState('white');

const toggleBackgroundColor = () => { setBackgroundColor(backgroundColor === 'white' ? 'lightblue' : 'white'); };

return ( <div style={{ backgroundColor }}>

Toggle Background Color

Toggle ); };

export default App;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors