FIND YOUR NEXT FEW LINES

Results for “tr”

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

1534 snippets foundClear filters
ReactState & reducers

Remove an item with filter

Remove an item with filter with a small React component and explicit browser behavior.

React✓ Tested
TypeScriptCollections & records

Remove duplicate values with a Set

Keep the first occurrence order while deduplicating.

Set✓ Tested
C++Collections

Remove odd values

Use the erase-remove idiom to filter a C++ vector in place.

C++✓ Tested
CFile positioning & lifecycle

Remove one known scratch file

C: Check remove’s return value instead of assuming deletion succeeded.

C✓ Tested
GitRemotes & additional checkouts

Rename a configured remote

Git: Renaming a remote updates its associated configuration and remote-tracking references.

Git✓ Tested
CFile positioning & lifecycle

Rename a known file

C: The standard rename function reports failure through its return value.

C✓ Tested
C++Filesystem operations

Rename a known file through filesystem

C++: filesystem::rename reports an error by exception when the operation fails.

C++✓ Tested
ReactPerformance & rendering

Render a bounded preview of a long list

Render a bounded preview of a long list with a small React component and explicit browser behavior.

React✓ Tested
AngularGetting Started

Render a child standalone component

Render a child standalone component with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularGetting Started

Render a conditional branch with @if

Render a conditional branch with @if with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
ReactLists & filtering

Render a helpful empty state

Render a helpful empty state with a small React component and explicit browser behavior.

React✓ Tested
ReactGetting Started

Render a list with stable keys

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

React✓ Tested