---
title: Learn About Self-Closing JSX Tags
localeTitle: تعرف على علامات JSX ذاتية الإغلاق
---
## تعرف على علامات JSX ذاتية الإغلاق

## تلميح 1:

 `const JSX = ( 
  <div> 
    {/* remove comment and change code below this line // Remember that comments in JSX have parentheses. 
    <h2>Welcome to React!</h2> <br > // ? 
    <p>Be sure to close all tags!</p> 
    <hr >  // ? 
    remove comment and change code above this line */} // Remember that comments in JSX have parentheses. 
  </div> 
 ); 
` 

## حل

 `const JSX = ( 
  <div> 
 
    <h2>Welcome to React!</h2> <br /> 
    <p>Be sure to close all tags!</p> 
    <hr /> 
 
  </div> 
 ); 
`