Check out this example code I saw:
import * as React from 'react';
const Count: React.FunctionComponent<{
count: number; // this is the line that confuses me
}> = (props) => {
return
{props.count}
;
};
export default Count;
That object structure is defining expected props, but since when is it syntactically correct to have semi-colons after k-v pairs in an object? This must be a Typescript syntax I'm unfamiliar with, but I'm not sure what it's called.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)