FIND YOUR NEXT FEW LINES

Results for “component”

Small, practical examples. Search by task or narrow things down below.

277 snippets foundClear filters
ReactAccessibility & events

Read a data attribute from the current target

Read a data attribute from the current target with a small React component and explicit browser behavior.

React✓ Tested
AngularEvents & DOM interaction

Read a DOM element through a viewChild signal

Read a DOM element through a viewChild signal with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularEvents & DOM interaction

Read a typed input event

Read a typed input event with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
ReactContext & shared state

Read a value from context

Read a value from context with a small React component and explicit browser behavior.

React✓ Tested
AngularGetting Started

Read an input through a template reference

Read an input through a template reference with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularTemplates & bindings

Read an optional nested value

Read an optional nested value with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
ReactRefs & DOM interaction

Read an uncontrolled field through a ref

Read an uncontrolled field through a ref with a small React component and explicit browser behavior.

React✓ Tested
ReactForms & validation

Read an uncontrolled form with FormData

Read an uncontrolled form with FormData with a small React component and explicit browser behavior.

React✓ Tested
AngularLifecycle & observable data

Register cleanup through DestroyRef

Register cleanup through DestroyRef with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
ReactRefs & DOM interaction

Remember the previously committed value

Remember the previously committed value with a small React component and explicit browser behavior.

React✓ Tested
Linux CommandsArchive integrity & packaging

Remove a leading directory while extracting

Linux Commands: Use strip-components only after inspecting a trusted archive layout.

Linux Commands✓ Tested
AngularLists & control flow

Remove a list item by identifier

Remove a list item by identifier with a standalone Angular component and explicit browser behavior.

Angular✓ Tested