yarn add material-go-playground
import React from "react";
import { render } from "react-dom";
import GoPlayground from "material-go-playground";
const code = `package main
import (
"fmt"
)
func main() {
fmt.Println("Hello, playground")
}`;
function App() {
return <GoPlayground code={code}/>
}
render(
<App/>,
document.getElementById("root"),
);