提交 4c2c4533 编写于 作者: S Sebastian Benz 提交者: Joe Haddad

amp-first example: fix broken inline script (#9389)

* amp-first example: fix broken inline script

* Apply lint-fix
上级 6387d9b5
......@@ -177,12 +177,11 @@ const Home = props => (
id="hello-world"
layout="fixed-height"
height="64"
script={() => {
const btn = document.querySelector('button')
script="
const btn = document.querySelector('button');
btn.addEventListener('click', () => {
document.body.textContent = 'Hello World!'
})
}}
})"
>
<button>Hello amp-script!</button>
</AmpScript>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册