فهرست منبع

Add note about single element x-if root

Caleb Porzio 5 سال پیش
والد
کامیت
4f1414ac9c
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      README.md

+ 2 - 0
README.md

@@ -275,6 +275,8 @@ For cases where `x-show` isn't sufficient (`x-show` sets an element to `display:
 
 
 It's important that `x-if` is used on a `<template></template>` tag because Alpine doesn't use a virtual DOM. This implementation allows Alpine to stay rugged and use the real DOM to work it's magic.
 It's important that `x-if` is used on a `<template></template>` tag because Alpine doesn't use a virtual DOM. This implementation allows Alpine to stay rugged and use the real DOM to work it's magic.
 
 
+> Note: `x-if` must have a single element root inside the `<template></template>` tag.
+
 ---
 ---
 
 
 ### `x-cloak`
 ### `x-cloak`