SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Lit / Web Components

» Start this Course
(Practice similar questions for free)
Question:

Describe what the "nothing" sentinel value does.

Author: John Pencola



Answer:

Nothing is a sentinel value that signals a ChildPart to fully clear its content. eg: const button = html`${ user.isAdmin ? html`<button>DELETE</button>` : nothing }`;


0 / 5  (0 ratings)

1 answer(s) in total