Skip to content

Commit c28eca6

Browse files
committed
added comment
1 parent 3542b3c commit c28eca6

File tree

1 file changed

+4
-0
lines changed
  • packages/components/src/components/hds/layout/flex

1 file changed

+4
-0
lines changed

packages/components/src/components/hds/layout/flex/index.hbs

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Copyright (c) HashiCorp, Inc.
33
SPDX-License-Identifier: MPL-2.0
44
}}
5+
{{!
6+
Dynamically generating an HTML tag in Ember creates a dynamic component class (with the corresponding tagName), while rendering
7+
a plain HTML elements requires less computing cycles for Ember (you will notice it doesn't add the `ember-view` class to it).
8+
}}
59
{{#if (eq this.componentTag "div")}}
610
<div class={{this.classNames}} ...attributes>{{yield (hash Item=(component "hds/layout/flex/item"))}}</div>
711
{{else}}

0 commit comments

Comments
 (0)