To load multiple data components on a single x-data attribute in Alpine.js, you can use an array to define the components. Here's an example:
<body x-data="{
items: [
item1(),
item2()
]
}">
<!-- Your HTML content here -->
</body>
In this example, item1() and item2() are functions that return the data for each component. By wrapping them in an array, you can load multiple components on the x-data attribute.
Make sure that you have defined the item1() and item2() functions in your JavaScript files before using them in the x-data attribute.
Note: If you are using separate JS files for each component, make sure to include them in your HTML file before the x-data attribute is defined.