Skip to content

Refactor slot rendering to use Fragment#42

Open
stanleyxu2005 wants to merge 1 commit into
DataTables:mainfrom
stanleyxu2005:feature/reduce-wrapper
Open

Refactor slot rendering to use Fragment#42
stanleyxu2005 wants to merge 1 commit into
DataTables:mainfrom
stanleyxu2005:feature/reduce-wrapper

Conversation

@stanleyxu2005
Copy link
Copy Markdown
Contributor

@stanleyxu2005 stanleyxu2005 commented May 2, 2026

Slot render creates 2 div to embed actual content node

<td>
  <div>    <!-- elements[key] -->
    <div>   <!-- h('div', ...) -->
       Cell content
    </div>
  </div>
</td> 

This PR will remove the inner div created by "h('div',"

<td>
  <div>    <!-- elements[key] -->
     Cell content
  </div>
</td> 

Note that comparing with pure js implementation, named slot approach will embed context into nested div elements. My ultermate target is to avoid any nested div.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant