gfront
Thanks to Webassybly technology, we can develop front-end in Go+ language now.
Inspired of React, go-app and Go+ classfile
Hello, world
JS(React)
index.html
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/babel-standalone@6.26.0/babel.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
class App extends React.Component {
render() {
return <h1>Hello world!</h1>
}
}
ReactDOM.render(<App />, document.getElementById('root'))
</script>
</body>
</html>
Go+(gfront)
Main.app
route "/", &Hello{}
runWhenOnBrowser
Hello.com
func Render() UI {
return h1.text("Hello World!")
}