You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
548 B
24 lines
548 B
import ReactDOM from "react-dom/client";
|
|
import React from "react";
|
|
|
|
|
|
function DisplayResults({password, username}: any) {
|
|
return (
|
|
<div>
|
|
<p>username: {username}</p>
|
|
<p>password: {password}</p>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
|
|
export function render(args: any) {
|
|
const root = ReactDOM.createRoot(
|
|
document.getElementById('root') as HTMLElement
|
|
);
|
|
root.render(
|
|
<React.StrictMode>
|
|
<DisplayResults username={args.name} password={args.password} />
|
|
</React.StrictMode>
|
|
);
|
|
} |