2022-01-01ãã1å¹´éã®è¨äºä¸è¦§
Reactå é¨ã§JQueryãæ£ãã使ç¨ããæ¹æ³ã¨æ³¨æç¹ã«ã¤ãã¦è§£èª¬è´ãã¾ãã
Reactã¨TypeScriptã§useEffectããã¯ãæ£ãã使ç¨ããæ¹æ³ã解説è´ãã¾ãã
Reactãå©ç¨ããããã¬ã¼ã ã¯ã¼ã¯ã§ããNext.jsã®æ¬ ç¹ã«ã¤ãã¦ç¦ç¹ããã¦ã¦åå¦è æ§ã«è§£èª¬ãã¦ããã¾ãã
React-Query-libraryã®ä½¿ãæ¹ã¨ãã®éè¦æ§ã«ã¤ãã¦åå¦è æ§ã«è§£èª¬ãè´ãã¾ãã
RSCã¨ã¯ï¼ å©ç¹ ãµã¼ãã¼ã¨ã¯ã©ã¤ã¢ã³ãã®ã³ã³ãã¼ãã³ãåå²ã¨ä»çµã¿ é©ç¨ã«ã¼ã« SSRã¨ã®éã æå¾ã« RSCã¨ã¯ï¼ â» RSCã¯ã¾ã Reactãã¼ã ã«ããéçºä¸ã§ãããæ¬çªç°å¢ã«ã¯ã¾ã æ¨å¥¨ããã¦ããªããã¨ã«æ³¨æãã¦ãã ããã ã¤ã¾ããå®é¨æ®µéã«ãããããã®æ©è½â¦
ãã®è¨äºã§ã¯ã30ã40代ã¾ãã¯50代以éã§ããã°ã©ãã³ã°ã¸ã®ãã£ãªã¢ãã§ã³ã¸ãèãã¦ããèªè æ§ã«åããè¨äºã¨ãªã£ã¦ããã¾ãã 30æ³ã§ã³ã¼ãã£ã³ã°ãå¦ã³å§ããã°ããã®æ¹ã§ãã40æ³ã§ã½ããã¦ã§ã¢ ã¨ã³ã¸ãã¢ã«ãªãæ¹ã§ãã50æ³ã§åè¨ç·´ããæ¹ã ã«ã30代â¦
ãã¤ãå½ããã°ããé²è¦§é ãããããã¨ããããã¾ãã å°ãé ãã¦ãã¾ãã¾ããããããã°éè¨ãã¦11æ4æ¥ã«ä¸å¹´ãçµéãã¾ããã ãã¤ããè¶ãé ãã¦ããèªè æ§ãªãã³ã«æ°è¦æ§ã«ã¯æè¬ç³ãä¸ãã¾ãã å½ããã°ã§å¦ç¿ãããèªè æ§ã«ãä»å¾ã®ãç¥ããã¨æ³¨æç¹â¦
HOCã¨ã¯ï¼ HOCã®ã¦ã¼ã¹ã±ã¼ã¹ HOCãã¿ã¼ã³ ã³ã³ãã¼ãã³ãã®æ¡å¼µ ããã¯ã®HOC ããã¯ã¨HOCã«ã¤ã㦠注æç¹ æå¾ã« é«éã³ã³ãã¼ãã³ãHigher-Order-Component(HOC)ã¯ãReactã®æ§æä¸ã®æ§è³ªããæ´¾çããè¨è¨ãã¿ã¼ã³ã§ãã ããã¯ãå°å ¥ãããåã¯ãã³ã³ããâ¦
JSã§ã®onchangã¾ãã¯addEventListenerã«ããå ¥åããã¹ããã©ã¸ãªãã¿ã³ããã§ãã¯ããã¯ã¹ããã³é¸æè¦ç´ ã®JSã¤ãã³ãã«ã¤ãã¦è§£èª¬è´ãã¾ãã
JSã§ãã¿ã³çæã¨ã¤ãã³ãå¦çã«ã¤ãã¦åå¿è æ§ã«è§£èª¬è´ãã¾ãã
JavaScriptã§ES6 moduleãä½æãã¦ä½¿ç¨ããæ¹æ³ãåå¿è æ§ã«è§£èª¬è´ãã¾ãã
Reactã¢ããªã«é©ç¨ããããªãã¡ã¯ã¿ãªã³ã°ã«é¢ããä¸è¬çãªåé¡ã«ã¤ãã¦è§£èª¬ãã¾ãã
Reactã®Webã¢ããªãPWAåããæ¹æ³ã解説è´ãã¾ãã
Next.jsãCNAã使ç¨ããã«æåã§ããã¸ã§ã¯ããã»ããã¢ãããã¦ããæ¹æ³ã解説è´ãã¾ãã
useRefããã¯ã使ç¨ãã¦refã宣è¨ãããã¾ãã¾ãªæ¹æ³ããç¾å¨ã®refããããã£ã®ä¸å¤æ§ã«ã©ã®ãããªå½±é¿ãä¸ããããå¦ã³ã¾ãã å½è¨äºã§ã¯ãcurrentããããã£ãä¸å¤ã«ããæ¹æ³ãå¯å¤ã«ããæ¹æ³ãç´¹ä»ãã¾ãã useRefããã¯ã¨ã¯ï¼ useStateã¨useRefã®éã usâ¦
Reactã®Suspenseããã³é 延èªã¿è¾¼ã¿ã¨ããã©ã¼ãã³ã¹ã«ã¤ãã¦åå¿è æ§ã«è§£èª¬è´ãã¾ãã
ã¦ã§ãéçºã¨ã¢ãã¤ã«ã¢ããªéçºãå°éã¨ããããã°ã©ãã¨ãã¦ãç§ãã¡ã¯ã¯ã©ã¤ã¢ã³ãã¨ããããã®ç®çã«ã¤ãã¦é »ç¹ã«è©±ãåããããããåºå¥ããæ¹æ³ã説æãã¦ãã¦ãã¾ãã ãã®ãããããã2ã¤ã®ä¸»ãªéããææããã¬ã¤ããä½æãããã¨ãèãã¾ããã ãâ¦
React TypeScriptã§ã®useStateããã¯ã§ç¶æ ã®åã宣è¨ããæ¹æ³ã«ã¤ãã¦è§£èª¬è´ãã¾ãã
Reactã§ä¸é æ¼ç®åã使ç¨ãããåãæ¿ã表示ã»ããã¯ã»ã¤ã³ã©ã¤ã³ã¹ã¿ã¤ã«ãªã©ã®æ¹æ³ã«ã¤ãã¦å¦ç¿ãã¾ãã
Next.jsã§ã®å¤é¨ãã¼ã¸ã«ãªã³ã¯ããã³ãªãã¤ã¬ã¯ããããæ¹æ³ã解説è´ãã¾ãã
ä¸é¨ã®Reactéçºè ãããè¡ãééãã¯ãããã©ã¼ãã³ã¹ã®åé¡ãé²ããã¨ãã¦ãå¿ è¦ã®ãªãã¨ãã«ããããã®ããã¯ãä¹±ç¨ãã¦ãã¾ãäºã§ããuseMemoã¨useCallbackã®ãããã®å®éã®ç®çã¯ä½ãªã®ããããã¦ããããé©åã«ä½¿ç¨ããæ¹æ³ã¨ä»çµã¿ã«ã¤ãã¦è§£èª¬ãã¦ãâ¦
Next.jsã§ãã¼ã«ã«ã®JSONãã¡ã¤ã«ãããã¼ã¿ãèªã¿åã£ã¦è¡¨ç¤ºããæ¹æ³ã解説ãããã¾ãã
Next.jsã§ã¦ã£ã³ãã¦ãªãã¸ã§ã¯ãã«ã¢ã¯ã»ã¹ããããã¤ãã®æ¹æ³ãåå¿è åãã«è§£èª¬è´ãã¾ãã
ã³ã³ãã¼ãã³ããå¼·å¶çã«åã¬ã³ããªã³ã°ããã¹ããã©ãããå¦ç¿ããã°ãReactã®å é¨åä½ãç解ããã®ã«é常ã«å½¹ç«ã¡ã¾ãã
React v18ãã17ã«ãã¦ã³ã°ã¬ã¼ãããããã¤ãã®æ¹æ³ã¨ãNext.jsã§ã®ãã¦ã³ã°ã¬ã¼ããç´¹ä»è´ãã¾ãã
Reactã§onClickã¤ãã³ãã§ä½¿ç¨ããæ¹æ³ã¨ããã¾ãã¾ãªç¨®é¡ã®ã¤ãã³ããã³ãã©ã«ã¤ãã¦èª¬æãã¾ãã
React CDNã使ç¨ãã³ã³ãã¼ãã³ãã«JSXã追å ããæ¹æ³ã¾ãã¯ããã¯ã®ä½¿ç¨ã¨æ³¨æç¹ãåå¿è ã«è§£èª¬ãã¾ãã
ãã®ãã¥ã¼ããªã¢ã«ã§ã¯ããã¼ã«ã«ã¹ãã¬ã¼ã¸ã«ã¢ã¯ã»ã¹ããããã使ç¨ãã¦ã¢ããªã±ã¼ã·ã§ã³ã®ç¶æ ãä¿åããæ¹æ³ã説æãã¾ãã â»åææ¡ä»¶ã¨ãã¦ãReactã®æ¦å¿µããã³Reactããã¯ã®åºæ¬ãç解ãã¦ãããã¨ã確èªãã¦ãã ããã Webã¹ãã¬ã¼ã¸ã¨ã¯ ãã©ã¼ã ã³â¦
Reactããã¯ã§fetchã使ç¨ãã¦async/awaitã§APIå¼ã³åºããå¦çãããç°¡åãªæ¹æ³ã解説ãã¾ãã
CRAã使ããTypeScriptã使ç¨ããReacté¢æ°ã³ã³ãã¼ãã³ãã§ã®propsã®å®ç¾©æ¹æ³ã¨æ¸¡ãæ¹ã解説è´ãã¾ãã