Skip to main content

test-code-block

/src/components/HelloCodeTitle.js
function HelloCodeTitle(props) {
return <h1>Hello, {props.name}</h1>;
}
/src/components/CSharp-prop.cs
// expression-bodied member property
public int MaxHealth => x ? y:z;
// And...
// field with field initializer
public int MaxHealth = x ? y:z;
// Is the same as the difference between...
public int MaxHealth
{
get
{
return x ? y:z;
}
}
// And...
public int MaxHealth = x ? y:z;