<div x-data="{name: 'John'}">
  <input type="text" x-model="name">
  <div x-text="name"></div>
  </div>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/alpinejs/2.8.2/alpine.js