25 lines
432 B
JavaScript
25 lines
432 B
JavaScript
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;
|