â ã¯ããã« <div>è¦ç´ ã«onClickã渡ãã¹ãã§ã¯ãªããã¨ãããã¨èãããã¨ã¯ãªãã§ããããï¼ ãã ããªã渡ãã¹ãã§ãªãã®ãï¼ ç解ãã¦ãªãã£ãã®ã§ä»å調ã¹ã¦ã¿ã¾ããã ãµã³ãã«ã³ã¼ã ä»ååä½ç¢ºèªã«å©ç¨ãããµã³ãã«ãªãã¸ããªã®ã³ã¼ãã¯Reactã§æ¸ãã¦ãã¾ãã â çµè«ï¼<div>ã«onClickãå®ç¾©ããã®ããªããã¡ãªã®ãï¼ ã¦ã¼ã¶ã¼ã«ã¨ã£ã¦æä½æ§ã®ä½ããã¿ã³ã«ãªã£ã¦ãã¾ããããã§ãï¼ è¦ããã« UX ãæªããªã£ã¦ãã¾ãããï¼ ãã®çç±ã解説ãã¦ããã¾ãï¼ â æä½æ§ã®ä½ããã¿ã³ã«ãªã£ã¦ãã¾ãçç± å¤§ããï¼ã¤ããã¨èãã¦ãã¾ãã divè¦ç´ 㯠focus ãæããªããã returnãã¼, spaceãã¼ãonClickã«å¤æããªããã ã¹ã¯ãªã¼ã³ãªã¼ãã¼ãèªèããªãè¦ç´ ã ãã â focus ãæããªããã <div>è¦ç´ ã¯focusãæã¡ã¾ããã ãªã®ã§ãtabãã¼ã§è¦ç´ ã«
{{#tags}}- {{label}}
{{/tags}}