2023-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãã®è¨äºã§ã¯ãReactã§ã·ã³ãã«ãªååæ¼ç®ãã§ããè¨ç®æ©ã¢ããªãä½æãã¾ãã
ãã®è¨äºã§ã¯ãSOLIDè¨è¨ã®ååã«ã¤ãã¦è©³ããå¦ãã§ããã¾ãã
ãã®è¨äºã§ã¯ãReactã¢ããªã«Tailwind CSSãçµ±åãããå¹æçãªã¹ã¿ã¤ãªã³ã°æ¹æ³ã«ã¤ãã¦è§£èª¬ãã¾ãã
Reactã«ãããã³ã³ãã¼ãã³ãã®åºæ¬ååã®è§£èª¬ã¨ãåå¿è ã«å½¹ç«ã¤Reactã³ã³ãã¼ãã³ãã©ã¤ãã©ãªã®ç´¹ä»ãæä¾ãã¾ã
ãã®è¨äºã§ã¯ãææ°ã®Next.js 13以éã®ããã¤ãã®æ°æ©è½ã詳ããæãä¸ãã¦ãã¢ããã°ã¬ã¼ãã«ãã主ãªå¤æ´ç¹ãåå¿è ã«è©³ãã解説ãã¦ããã¾ãã
ãã®è¨äºã§ã¯åå¿è ã®æ¹ã«ãããããããæ¹æ³ã§ãã·ã³ãã«ãªã¦ã¼ã¶ã¼èªè¨¼ã¢ããªãä¾ã«è§£èª¬ãã¦ããã¾ãã
ãã®è¨äºã§ã¯ãã»ãã¥ãªãã£ã«é¢å¿ã®ãã人ã ã«ã¨ã£ã¦éè¦ãªæ å ±ãæä¾ããã»ãã¥ãªãã£ããã©ã¤ãã·ã¼ã®ä¿è·ã«å½¹ç«ã¤ç¥èã¨å¯¾çæ¹æ³ãç´¹ä»ãã¾ãã
åå¿è åãã«åºæ¬çãªç»å表示æ¹æ³ãããç»åæé©åã«é¢ããããã¤ãã®ãåé¡ã解決ãã¦ãããã¹ããã©ã¯ãã£ã¹ã説æè´ãã¾ãã
ãã®è¨äºã§ã¯ãåå¿è åãã«Reactã¢ããªãå ¬éããåã®æºåããå人éçºã«ããã¦CRAã使ç¨ãããã¨ã§å質ã¨å¹çæ§ãåä¸ãããæ¹æ³ã«ã¤ãã¦è§£èª¬ãã¦ãã¾ãã
å½è¨äºã§ã¯Windowsã使ç¨ããæåã® React Nativeããã¸ã§ã¯ãç¨ã«Expoéçºç°å¢ãã»ããã¢ããããããã«å¿ è¦ãªãã¹ã¦ã®æé ã説æè´ãã¾ãã
æ¬è¨äºã§ã¯ããã¬ã¼ã ã¯ã¼ã¯ã使ç¨ããã«ãç´ç²ãªNode.jsã§æ§ç¯ãããåç´ãªéçãã¡ã¤ã«ãµã¼ãã¼ãæä¾ãã¾ããNode.jsã¯ç¾å¨ãçµã¿è¾¼ã¿ã®APIã¨ãããæ°è¡ã®ã³ã¼ãã§ãå¿ è¦ãªã»ã¨ãã©ãã¹ã¦ãæä¾ããã¦ãã¾ãã
ä»åã¯ãJavaScriptã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã¨ã³ã³ãã¼ãã³ãããã¹ãããããã®Reactã¦ã¼ãã£ãªãã£ã®çµã¿åããã¨ãã¦äººæ°ã®é«ããJestã¨React Testing Libraryã使ã£ã¦Reactã¢ããªã±ã¼ã·ã§ã³ããã¹ãããæ¹æ³ã«ã¤ãã¦èª¬æãã¾ãã ãã¹ãã¨ã¯ ã¦ããããã¹â¦
ChatGPTã®å°è±¡çãªã¬ã¹ãã³ã·ã ã¢ã«ã´ãªãºã ã«ããããã®AIãã¯ããã¸ã¼ã¯ä¸çä¸ã§æ³¨ç®ãæµ´ã³ã¦ãã¾ãããã¥ã¼ã¹è¨äºã§ãChatGPTãé »ç¹ã«åãä¸ãããã¦ãã¾ãã ä¸é¨ã®äººã ã¯ãChatGPTãã½ããã¦ã§ã¢éçºè ãå®å ¨ã«åã£ã¦ä»£ããå¯è½æ§ãããã¨æ¸å¿µãã¦ãã¾â¦
ã¯ãã¼ã¸ã£ã¼ï¼Closureï¼ã®æ¦å¿µã¯é¢æ°åããã°ã©ãã³ã°ã«ããã¦éè¦ã§ãããJavaScriptã®é¢æ¥ã§ãã質åãããäºãããã¾ãã ã©ãã§ã使ç¨ããã¦ãã¾ãããã¯ãã¼ã¸ã£ã¼ã¯ææ¡ããã®ãã¨ã¦ãå°é£ã§ãããã¾ãã ã¾ããã¯ãã¼ã¸ã£ã¼ãå¦ã¶ã¾ãã«ï¼ã¹ã³ã¼ãï¼â¦
Reduxã¯ãReactã¢ããªã±ã¼ã·ã§ã³ã®ç¶æ 管çã©ã¤ãã©ãªã§ãããã¢ããªã±ã¼ã·ã§ã³å ã®ç¶æ ãããå¹ççã«ç®¡çããããã«ä½¿ç¨ããã¾ãã
ãã®ãã¥ã¼ããªã¢ã«ã§ã¯ãJavaScriptã®ã¯ã©ã¹æ§æãå®è£ ããæ¹æ³ã¨ä»çµã¿ã«ã¤ãã¦å¦ç¿ãã¾ãã
Reactã®ããã¸ã§ã¯ããå®è¡ããã«ã¯ãéçºã¢ã¼ã㨠Production buildã®2ã¤ã®ã¢ã¼ãã使ç¨ã§ãã¾ãã éçºæ®µéã§ã¯ãReactãã¢ããªã³ã¼ãã®åé¡ãç°¡åã«æ¤åºãã¦ä¿®æ£ãããã°ãæé¤ããããã®å¤ãã®å½¹ç«ã¤è¦åã¨ãã¼ã«ãæä¾ããéçºã¢ã¼ãã使ç¨ãã¦ãã³ã¼ãâ¦
ã¯ã©ã¤ã¢ã³ããµã¤ãã¨ã¯ï¼ ãµã¼ãã¼ãµã¤ãã¨ã¯ï¼ ã¯ã©ã¤ã¢ã³ããµã¤ãã¬ã³ããªã³ã° ãµã¼ãã¼ãµã¤ãã¬ã³ããªã³ã° éçãµã¤ãçæ 3ã¤ã®ä¸»ãªéã æå¾ã« ããæ°å¹´ã®å¾åã¯ãWebãµã¤ãã®ãã¶ã¤ã³ãã¢ããªã«ä¼¼ã¦ãã¦ãã¾ãã é«åº¦ãªå¿çæ§ã¨åæ¹åæ§ã¯ãå¹ åºãã³â¦
謹ãã§æ°å¹´ã®ãæ¨æ¶ãç³ãä¸ãã¾ãã æ¬å¹´ãä½åãããããé¡ãç³ãä¸ãã¾ãã ããããã2023å¹´ãã¹ã¿ã¼ããããã¾ããã ã¿ãªãã¾ã¯ã©ããªãæ£æããéããã§ããããï¼ çæ§ã«ãããã¾ãã¦ã¯ãæ°æ¥ãæ¸ ã ããæ°æã¡ã§ãè¿ãã®ãã¨ã¨ãæ ¶ã³ç³ãä¸ãã¾ãã â¦