Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 605 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 605 Bytes

React Material UI Component for Golang playground

Website

Install

yarn add material-go-playground

Usage

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"),
);