Skip to content

How can I can if I its has child element before render #3103

Discussion options

You must be logged in to vote

You can use this.children inside your element as early as inside the constructor() as long as super() was called.

  constructor() {
    super();
    console.log(this.children);
  }

Curious what you're trying to do?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jitendraP-ashutec
Comment options

@ynxtynxt
Comment options

@jitendraP-ashutec
Comment options

Answer selected by e111077
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants