dgf-prototype/client/src/App.jsx

25 lines
432 B
React
Raw Normal View History

2024-02-21 18:01:41 -06:00
import { useState } from 'react';
import Connect from './Connect';
import './App.css';
function App() {
const [publicKey, setPublicKey] = useState(null);
return (
<>
<Connect setPublicKey={setPublicKey} />
<div>
{publicKey !== null && (
<>
Wallet connected:
{' '}
{publicKey}
<br />
</>
)}
</div>
</>
);
}
export default App;