// NewComponent is a constructor for Component.
//
// You can add zero or many Attributes and Tags.
NewComponent is a constructor for Component.

You can add zero or many Attributes and Tags.
// NewComponent is a constructor for Component . // // You can add zero or many Attributes and Tags .
func NewComponent(name string, elements ...interface{}) *Component {
	c := &Component{
		Tag:        T(name),
		id:         shortid.MustGenerate(),
		AutoRender: true,
	}
	c.Add(NewAttribute(AttrID, c.GetID()), elements)
	return c
}
func NewComponent ( name string , elements ... interface { } ) * Component { c := & Component { Tag : T ( name ) , id : shortid . MustGenerate ( ) , AutoRender : true , } c . Add ( NewAttribute ( AttrID , c . GetID ( ) ) , elements ) return c }
NewComponent is a constructor for Component.
NewComponent is a constructor for Component .