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 => ( ...@@ -177,12 +177,11 @@ const Home = props => (
id="hello-world" id="hello-world"
layout="fixed-height" layout="fixed-height"
height="64" height="64"
script={() => { script="
const btn = document.querySelector('button') const btn = document.querySelector('button');
btn.addEventListener('click', () => { btn.addEventListener('click', () => {
document.body.textContent = 'Hello World!' document.body.textContent = 'Hello World!'
}) })"
}}
> >
<button>Hello amp-script!</button> <button>Hello amp-script!</button>
</AmpScript> </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