title: Where should scripting be placed with Alpine?
body: <p>With vue, I would have a vue component (<code>.vue</code> file) that contained the markup and javascript in one file. This component would be imported into a master javascript file for deployment and hashed and uploaded to something like S3/Cloudfront.</p>
  <p>With Alpine, I've made a few basic components, but where should any additional javascript sit?</p>
  <p>So for example, I have a PHP file for a feed, when the user scrolls to the bottom of the page, I need to load more posts. The markup is in a PHP file, but where should the javascript sit? If it's within the same PHP file, how can I benefit from uploading the javascript to S3/Cloudfront?</p>