2022-05-01ãã1ã¶æéã®è¨äºä¸è¦§
React.jsã«ã¤ãã¦ã®ãããã質åã¨ç°¡åãªåçãã¾ã¨ãã¾ããã React.jsã«ãå°ãã®å ´åã¯ããã®è¨äºãåèã«ãã¦åé¡è§£æ±ºã試ã¿ã¦ãã ããã
æ¬æ¥ã¯JavaScriptã®å·»ãä¸ãã«ã¤ãã¦å¦ç¿ãã¾ãã å·»ãä¸ãã¨ã¯ï¼ å¤æ°ã®å¯å¤å·»ãä¸ã é¢æ°ã®å·»ãä¸ã é¢æ°å¼(ç¡åé¢æ°)ã®å·»ãä¸ã ã¯ã©ã¹ã§ã®å·»ãä¸ã ã¾ã¨ã JSã®ã¹ã³ã¼ãã«ã¤ãã¦ã¯ä¸è¨å ¥éã§è§£èª¬ãã¦ããã¾ãã dev-k.hatenablog.com å·»ãä¸ãã¨ã¯ï¼ Javâ¦
ãã®è¨äºã§ã¯ãåå¿è åãã«JavaScriptã®é¢æ°ã»é¢æ°å¼ããã³ã¢ãã¼é¢æ°ã®åºç¤æ§æã«ã¤ãã¦è§£èª¬ãã¾ãã
javascriptã®æ°å¤è¨ç®ã¨æ¼ç®åã»æ°å¤ãæååã«å¤æã»æ°å¤ã®ãã§ãã¯ãªã©åºæ¬çãªå¦ç¿ã¨ãªãã¾ãã
ææ°ã®JavaScriptã§ã®æååã®ä½æãæ¤ç´¢ãç½®æããã®ä»æä½ã«ã¤ãã¦åå¦è ã®ãã¡ã«ç¥ã£ã¦ããã¹ãåºç¤å ¥éã¨ãªã£ã¦ããã¾ãã
åºæ¬çãªãã¼ã¿æ§é ã®ä¸ã¤ã§ãããJavaScripté åã®ä½æããã³æä½ã«ã¤ãã¦ã®åå¿è åã解説ã¨ãªã£ã¦ããã¾ãã
å°æ¥çã«Reactéçºè ãç®æãæ¹åãã«ãJavaScriptã®åºç¤ã§ããå¤æ°ã»å®æ°ã®åºç¤å ¥éã¨ãªãã¾ãã
Reactãå§ããåã®JavaScriptã¯ã©ãã»ã©å¦ã¹ã°è¯ãã®ãï¼ãªã¹ãã«ã¾ã¨ãã¾ããã
Reactã«ã¯å¤ãã®å©ç¹ãããã¾ãããèæ ®ãã¹ãããã¤ãã®æ¬ ç¹ããããã¾ãã React.jsã使ç¨ããåã«ãããReactã®å ¨ä½åãææ¡ããããã«å¦ãã§ããã¾ãããã
React.jsã§ã®ã¤ã³ãã¼ãã¨ã¨ã¯ã¹ãã¼ãã®æ±ãæ¹ã»æ¦å¿µã»éè¦ãªçç±ãªã©åå¦è æ§ã«è§£èª¬è´ãã¾ãã
React JSXã§ã«ã¼ãå¦çããæ¹æ³ãåå¦è æ§åãã«è§£èª¬è´ãã¾ãã forã»forEachã»ãããé¢æ°ã§ã®ã«ã¼ãã¨ãªãã¾ãã