You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to run commands or just print things to the terminal without actually typing in a command? At the moment the following code runs (console.log works), but just doesnt print anything in the terminal. Seems unusual.
Example:
const welcomeMessage = (
<span>
<span style={link} onClick={() => commands.copy()}>
Click here
</span>{" "}
to try to run a function to print to terminal.
</span>
);
const commands = {
copy: () => {
console.log("success?");
return <span>Success!</span>;
}
};
Is it possible to run commands or just print things to the terminal without actually typing in a command? At the moment the following code runs (console.log works), but just doesnt print anything in the terminal. Seems unusual.
Example:
EDIT ON CODESANDBOX
The text was updated successfully, but these errors were encountered: