import ReactDOM from "react-dom/client";
import React from "react";


function DisplayResults({username, password}: 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>
    );
}