Skip to content

Instantly share code, notes, and snippets.

@amponce
Created May 5, 2026 17:08
Show Gist options
  • Select an option

  • Save amponce/db6107eafaf86746936fd0d8afdb6504 to your computer and use it in GitHub Desktop.

Select an option

Save amponce/db6107eafaf86746936fd0d8afdb6504 to your computer and use it in GitHub Desktop.
function doGet() {
return HtmlService.createHtmlOutputFromFile('index')
.setTitle('Prototype')
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);
}
@amponce

amponce commented May 5, 2026

Copy link
Copy Markdown
Author
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <script src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
  <script src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
  <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
  <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-slate-900 text-white p-8 min-h-screen">
  <div id="root"></div>
  <script type="text/babel">
    function App() {
      const [count, setCount] = React.useState(0);
      return (
        <div className="max-w-md mx-auto">
          <h1 className="text-3xl font-bold mb-4">Prototype</h1>
          <button
            onClick={() => setCount(count + 1)}
            className="bg-blue-500 hover:bg-blue-600 px-4 py-2 rounded"
          >
            Clicked {count} times
          </button>
        </div>
      );
    }
    ReactDOM.createRoot(document.getElementById('root')).render(<App />);
  </script>
</body>
</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment