Top "Ref" questions

The ref keyword causes an argument to be passed by reference, not by value.

React - useRef with TypeScript and functional component

I was trying to call the child component method from parent component and I was trying to use useRef. In …

reactjs typescript ref tsx react-functional-component
In Cloudformation YAML, use a Ref in a multiline string (? use Fn:Sub)

Imagine you have a aws resource such as Resources: IdentityPool: Type: "AWS::Cognito::IdentityPool" Properties: IdentityPoolName: ${self:custom.appName}_${self:…

string yaml amazon-cloudformation multiline ref
Get a reference to a struct inside array

I want to modify a field of a struct which is inside an array without having to set entire struct. …

c# arrays struct ref
Using REF & OUT keywords with Passing by Reference & Passing by Value in C#

Here is what I understand so far: PASS BY VALUE Passing by value means a copy of an argument is …

c# pass-by-reference ref out
TypeError: __WEBPACK_IMPORTED_MODULE_0_react___default.a.createRef is not a function

I am new to React.js and just now i was learning the concept of ref in React. They have …

javascript reactjs ref
Reactjs how to use ref inside map function?

I'm mapping through an array and for each item display a button with text. Say I want that on clicking …

css reactjs ref
Why is list when passed without ref to a function acting like passed with ref?

If I did not get this terribly wrong, this behaviour is strange for me. Rather than explaining, I'll post a …

c# c#-4.0 argument-passing ref
The performance cost to using ref instead of returning same types?

Hi this is something that's really bothering me and I'm hoping someone has an answer for me. I've been reading …

c# performance ref
How do I enable the REFS_OK flag in nditer in numpy in Python 3.3?

Does anyone know how one goes about enabling the REFS_OK flag in numpy? I cannot seem to find a …

numpy python-3.x flags ref
Type 'string' as an argument in C# function

The string type in C# is a reference type, and passing a reference type argument by value copies the reference …

c# .net string ref