FIND YOUR NEXT FEW LINES

Results for “on”

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

3000 snippets foundClear filters
ReactGetting Started

Render an optional notice

Render an optional notice with a small React component and explicit browser behavior.

React✓ Tested
AngularLists & control flow

Render groups with nested loops

Render groups with nested loops with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
ReactLists & filtering

Render nested groups with stable keys

Render nested groups with stable keys with a small React component and explicit browser behavior.

React✓ Tested
ReactGetting Started

Render nothing from an optional component

Render nothing from an optional component with a small React component and explicit browser behavior.

React✓ Tested
AngularComponents & communication

Render signal changes with OnPush

Render signal changes with OnPush with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
ReactAccessibility & events

Render untrusted-looking input as literal text

Render untrusted-looking input as literal text with a small React component and explicit browser behavior.

React✓ Tested
ReactGetting Started

Render your first React component

Render your first React component with a small React component and explicit browser behavior.

React✓ Tested
JavaScriptRegular expressions & URL encoding

Reorder captured text in a replacement

JavaScript: Use numbered replacement groups to rearrange a known two-part name.

JavaScript✓ Tested
TypeScriptRegular expressions & URL encoding

Reorder captured text in a replacement

TypeScript: Use numbered replacement groups to rearrange a known two-part name.

TypeScript✓ Tested
Linux CommandsTransforming text

Reorder fields with a capture group

Linux Commands: Use extended regular expressions and backreferences to rearrange a known format.

Linux Commands✓ Tested
Bash ScriptsGetting Started

Repeat a command for several words

Bash Scripts: Repeat a command for several words with a small standalone Bash program.

Bash Scripts✓ Tested
PythonGetting Started

Repeat a fixed number of times

Python: Use a counted loop to print three numbered steps.

Python✓ Tested