x-text ====== `x-text` sets the text content of an element to the result of a given expression. Here's a basic example of using `x-text` to display a user's username.
Username:
Username:
Username: **calebporzio** Now the `` tag's inner text content will be set to "calebporzio". [← x-on](/directives/on) [x-html →](/directives/html) Code highlighting provided by [Torchlight](https://torchlight.dev)