ã¡ã¢ã§ãã ããã¦ååããã®ç¶ãã§ãã 追è¨: 2019/07/16 å ¨ä½çã«é ç®ãä¿®æ£ãã¾ããã Function Component Function Componentã®åºæ¬å½¢ã¯React.FCåã使ç¨ããã ã¸ã§ããªã¯ã¹ã«propsã®åãæå®ãããã¨ãã§ããã PropTypesãªã©ã§æå®ãã¦ããpropsã®åæå®ããåã¨ã¤ãªã¢ã¹ã«ç§»ã£ãã ãã import * as React from 'react'; // Introã®propsã®type aliasãå®ç¾© type ContentProps = { title: string; } // React.FCåãç¨ãã // ã¸ã§ããªã¯ã¹ã«IntroPropsãæå® const Content: React.FC<ContentProps> = props => { return ( <> <h2>{props.title}<
{{#tags}}- {{label}}
{{/tags}}