Commit 4c2c4533 authored by Sebastian Benz's avatar Sebastian Benz Committed by Joe Haddad

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

* amp-first example: fix broken inline script

* Apply lint-fix
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment