ã¯ããã«
ããã«ã¡ã¯ãã¯ã©ã¦ããã°äºæ¥æ¨é²é¨ã§ã¨ã³ã¸ãã¢ããã¦ããè¶éªé¨ã§ãã
æ®æ®µã¯ãå·¥æ°ç®¡çSaaSã¢ããªãCrowdLogãã®ããã³ãã¨ã³ãéçºæ¨é²ã«å¾äºãã¦ãã¦ãéçºåºç¤é¨åã®æ¤è¨ã¨æ´åããã¡ã³ãã¼ã®ã¹ãã«ã¢ããæ½çãªã©ã«åãçµãã§ãã¾ãã
ä»åã¯ãã®åãçµã¿ã®ä¸ã§ããã³ãºãªã³å½¢å¼ã®ãã¬ã¼ãã³ã°è³æãç¨ãã¦ã¡ã³ãã¼ã®ã¹ãã«ã¢ãããå³ã£ã¦ããã話ãç´¹ä»ããã¦ããã ãããã¨æãã¾ãã
ç®æ¬¡
- ã¯ããã«
- ç®æ¬¡
- èæ¯ã¨èª²é¡
- ã¹ãã«ã¢ããã¯ã¤ãºãå§ãã¾ãã
- ã¯ã¤ãºä¾
- åãçµãã§ã¿ã¦
- ã¾ã¨ã
èæ¯ã¨èª²é¡
ç´è¿ã®ã¯ã©ã¦ããã°ã®éçºã§ã¯ãã¡ã³ãã¼ã®æè¡ã¹ã¿ãã¯ç§»è¡ã«åãçµãã§ãã¾ãã
ããã¯ãããã¾ã§ã®ã¬ã¬ã·ã¼ãªæè¡ã¹ã¿ãã¯(Perl) ã§ã®éçºãããä¸æ°ãããã¢ãã³ãªã¹ã¿ã㯠(Golang x React) ã§ã®éçºã«ç§»è¡ãã¦ãããããã«ãåã¡ã³ãã¼ã«æè¡ãå¦ãã§èº«ã«ã¤ãã¦ããããã¨ãæãã¾ãã
ããã§ã大ããåãã¦ããã³ãã¨ã³ã (React) ã¨ããã¯ã¨ã³ã (Go) ã®2種é¡ã«åãã¦ãªã³ãã¼ãã£ã³ã°è³æãç¨æããã¦ãã¾ããããããã³ãã¨ã³ãå´ã«ã¯èª²é¡ãããã¾ããã
ããã¯ãè³æããèªã¿ç©ãä¸å¿ã¨ãªã£ã¦ãã¦ãå®åãå ·ä½çã«ã¤ã¡ã¼ã¸ã§ãããã¬ã¼ãã³ã°è³æããªãã£ããã¨ãã§ãã
ãã¨ãã¨ãªã³ãã¼ãã£ã³ã°è³æãç¨æããå½åã¯ãåºæ¬çãªç¥èãèªã¿ç©ã§èº«ã«ã¤ãã¦ãããããã®å¾ã¿ã¹ã¯ãããªããªããå®åçãªé¨åãå¦ãã§ããããã°è¯ããã¨æã£ã¦ãã¾ãããããªã³ãã¼ãã£ã³ã°ãå®æ½ããã¡ã³ãã¼ãããåè¿°ãã課é¡ã®ãããªãã£ã¼ãããã¯ãå¤ãã£ããããæ¹åãããã¨ã«ãã¾ããã
ã¹ãã«ã¢ããã¯ã¤ãºãå§ãã¾ãã
åè¿°ã®èª²é¡ã«å¯¾å¿ããããããã¹ãã«ã¢ããã¯ã¤ãºãã¨ãããã®ãã¯ããã¾ããã
ããã¯ä»¥ä¸ã®ãããªç¹å¾´ãæã¤ããã³ãºãªã³å½¢å¼ã®ãã¬ã¼ãã³ã°è³æãæä¾ããåãçµã¿ã§ã:
- ç¹å®ã®ãé¡ã«æ²¿ã£ãã¯ã¤ãºãæä¾ããã
- ãã®åãçµã¿ã§ã¯ããã¯ã¤ãºãã¨ããç¹å®ã®ãããã¯ã«æ²¿ã£ããã¬ã¼ãã³ã°è³æãæä¾ãã¾ãã
- ãããã¯ä¾ã¨ãã¦ã¯ä»¥ä¸ã®ãããªãã®ãããã¾ã:
- ã«ã¹ã¿ã hookã®ä½ãæ¹
- å種ã¦ããããã¹ãä½æ
- CrowdLogã§ã®ã¢ã¼ããã¯ãã£ã«æ²¿ã£ãã³ã¼ãã®å ±éå
- å®éã«ã³ã¼ããæ¸ããªããåãçµã
- StackBlitz (https://stackblitz.com/) ã«ã¯ã¤ãºã®å®è£ é¨åãç¨æãããã¨ã§ãéçºè ã¯å®éã«æãåãããªããç¥èã®ç¿å¾ããããã¨ãã§ãã¾ãã
- ããã«ãã£ã¦ãå®åã«è¿ãå®è£ çµé¨ããã¬ã¼ãã³ã°ã®æ®µéã§ç©ãããã¨ãæå¾ ã§ãã¾ãã
- ã ãã§ã空ãæéã«åãçµããã¨ãã§ãã
- ãã®è³æã¯Notionã¨StackBlitzã§æ§æããã¦ãããæ軽ã«ãã¤ã§ãçæã§ããããã«ãªã£ã¦ãã¾ãã
- éçºç°å¢ãStackBlitzã§ç¨æããã¦ãããããåã 人ãç°å¢ã®ç¨æã§æéãåããããã¨ãããã¾ããã
éçºè ã¯ãã£ããã¨ä»¥ä¸ã®ãããªæµãã§ãã®ã¯ã¤ãºã«åãçµã¿ã¾ãï¼
ã¾ããå°å
¥ããNotionä¸ã«ç¨æããã¦ãããããã§ã¯ã¤ãºã®ãç®çãããåºé¡å
容ãã«ã¤ãã¦ç解ãã¾ãã
次ã®ãã¯ã¤ãºè§£çãã§ã¯ãåºé¡å
容ã«æ²¿ã£ã¦ãStackBlitzä¸ã§ã¯ã¤ãºã«åãçµã¿ã¾ãã
æå¾ã«ãNotionä¸ã®è§£èª¬ã¨StackBlitzä¸ã®æ¨¡ç¯åçã³ã¼ããå
ã«ãçãåããããè¡ãã¾ã
ãã®ä¸é£ã®æµãã空ãæéã«è¡ããããã«ã15 - 30åç¨åº¦ã§çµãããããªåéã§ã¯ã¤ãºã¯ä½æããã¦ãã¾ãã
ã¯ã¤ãºä¾
å®éã«å®æ½ããã¦ããã¯ã¤ãºãæç²ãã¦ãç´¹ä»ãã¾ãã
ãç´¹ä»ããã®ã¯ãã«ã¹ã¿ã hookåãã®ã¦ããããã¹ããä½æãããã¨ãããããã¯ã®ã¯ã¤ãºã«ãªãã¾ãã
å°å ¥é¨
ã¾ãã¯Notionä¸ã®ã¯ã¤ãºå°å ¥é¨ã«ãªãã¾ãã
(ã¯ã©ã¦ããã°ã§ã¯ãªãã·ã§ã¢éçºãåãå ¥ãã¦ãããã¡ã³ãã¼å ¨ä½ããã®è³æãå©ç¨ã§ããããã«ãè±èªã§æ¸ããã¦ãã¾ã)
å
容ã¨ãã¦ã¯ãã¾ããæ¦è¦ (General)ã ãããããã®ã¯ã¤ãºããã£ããã¨ãªãã®ããã®ã¯ã¤ãºããè¨è¼ããã¦ãã¾ãã
次ã«ããã®ã¯ã¤ãºããå¾ãããã㨠(What you will learn)ããããããã®ã¯ã¤ãºãéãã¦å¾ãããç¥èã«ã¤ãã¦è¨è¼ããã¦ãã¾ããä»åã§ã¯Reactã®ã«ã¹ã¿ã hookã«å¯¾ãã¦ã¦ããããã¹ããæ¸ãã®ã«å¿
è¦ãªåºæ¬çãªãã¨ãå¦ã¹ã¾ãã¨è¨è¼ããã¦ãã¾ãã
æå¾ã«ãåºé¡å
容 (Quiz)ããããã¾ããããã§ã¯åºé¡ãããã¯ã¤ãºã®å
容ã¨StackBlitzä¸ã§ã©ããã£ãå®è£
ããã¦ã»ããããè¨è¼ããã¦ãã¾ããã¾ããéçºè
ãè¿·ãããã¦ãã¾ããªãããã«ãã解çã®ãã³ã (Hint)ãã®é
ç®ãç¨æãã¦ãã¾ãããã®ã¯ã¤ãºã§ã¯ããã¹ãã³ãã³ãã®èµ°ããæ¹ãã使ç¨ãããã¹ãã©ã¤ãã©ãªã®ããã¥ã¡ã³ããªã³ã¯ãæ·»ä»ããã¦ãã¾ãã
ã¯ã¤ãºè§£ç
次ã¯StackBlitzä¸ã§ã®ã¯ã¤ãºè§£çé¨åã«ãªãã¾ãã
StackBlitzã§ã¯ã¢ãã³ãªã¨ãã£ã¿ã¼ã®åºæ¬çãªæ©è½ããã©ã¦ã¶ä¸ã§å©ç¨ã§ããããã«ãªã£ã¦ããããã¡ã¤ã« / ãã©ã«ãã®ä½æãã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ããéç解æãã½ã¼ã¹ã³ã¼ãã®ãã©ã¼ããããããã¦å種ã³ã¼ãã®å®è¡ç°å¢ãªã©ãå©ç¨ãããã¨ãã§ãã¾ãã
ã¾ããä»åã®ã¯ã¤ãºã®ããã®ä½¿ãæ¹ã¨ãã¦ã解çã«æä½éå¿
è¦ãªãã¡ã¤ã«ã¯ãããããç¨æããããã«ãã¦ãéçºè
ãããã«è§£çã«åãæãããããã«ãã¦ãã¾ãã
ç¨æããããã¡ã¤ã«ã¨ã¯ãä»åã®ã¦ããããã¹ãã®ä¾ã§ããã¨ãããã¹ã対象ã¨ãªãã«ã¹ã¿ã hookã®å®è£
ãããã¹ããã¡ã¤ã«ã®éå½¢ãããã¹ãã³ã¼ãã®ãµã³ãã«ããªã©ã«ãªãã¾ãã
éçºè ã¯ãã®StackBlitzä¸ã§ã³ã¼ããæ¸ããæ¸ãããã®ãå®è¡ãã¦åä½ã確ãããªããã¯ã¤ãºã解ãã¦ãããã¨ã«ãªãã¾ããä»åã®ä¾ã§ã¯ã¦ããããã¹ããä½æãããã¨ãç®çã¨ãªãã¾ãããStackBlitzã¯å®è¡å¯è½ãªã¿ã¼ããã«ãæä¾ãã¦ããããã¡ããããã¹ãã®ããã®ã³ãã³ããå®è¡ã§ããããã«ãªã£ã¦ãã¾ãã
çãåãã
æå¾ã«çãåããé¨åã®ç´¹ä»ã§ãã
çãåããã®éã¯ãã¾ãNotionä¸ã®è§£èª¬ãèªã¿ã¾ãã
ä»åã¯ã«ã¹ã¿ã hookã®ã¦ããããã¹ãä½æã®åºæ¬ãç¥ããã¨ãç®çã ã£ãããã使ç¨ãã¦ããã©ã¤ãã©ãªã«ã¤ãã¦ããç解ãã¦ã»ããã£ãåºæ¬çãªãã¤ã³ã(stateæ´æ°ãuseEffectã®åä½ãsimulateããæ¹æ³)ã«ã¤ãã¦èª¬æãã¦ãã¾ãã
ã¾ããStackBlitzã«ç¨æããã¦ããã模ç¯åçã®å®è£
ãçãåããã«å©ç¨ãã¾ãã
ãã¡ãããããã¨ã§ãéçºè
ã¯èªåã®ã³ã¼ãã¨ã®å·®åãæ¯è¼ãã¤ã¤ãå
·ä½çãªå®è£
ãå¦ã¶ãã¨ãã§ãã¾ãã
以ä¸ããã«ã¹ã¿ã hookåãã®ã¦ããããã¹ããä½æãããã¨ãããé¡ã®ã¯ã¤ãºã®å
¨å®¹ã¨ãªãã¾ãã
ä»ã®ã¯ã¤ãºã大æ ã¯ããã¨åãè¦ç´ ã§æ§æããã¦ãã¾ãã
åãçµãã§ã¿ã¦
ãã®åãçµã¿ãåå¹´ã»ã©éç¨ãã¦ã¿ã¦ãã¦ãã¯ã¤ãºã¯10åã»ã©ä½æãã¦ãã¾ããã
ããã¾ã§éç¨ãã¦ã¿ã¦ã®ææãæ¯ãè¿ã£ã¦ã¿ã¾ãã
ããã¨ãã
ããå®åãã¤ã¡ã¼ã¸ããããå¦ç¿ãã§ãã
åè¿°ããã¦ãã¾ããã以åã®ãã¬ã¼ãã³ã°è³æã«æ¯ã¹ã¦ãæãåããã¤ã¤å¦ã¹ãããã«ãªã£ã¦ããåãããå®åãã¤ã¡ã¼ã¸ããããå¦ç¿ã§ããããã«ãªã£ã¦ãããã¨æãã¾ãã
ã¾ããæãåãããã¨ãä¸é¨ã¨ãªã£ã¦ãããã¨ã§ãããã¨ã£ã¤ããããå¦ç¿è³æã«ããªã£ã¦ãããã¨æãã¾ãã
å®éã«ã¯ã¤ãºã«åãçµãã ã¡ã³ãã¼ãããããã®ã¯ã¤ãºããããã¨ã§ä»¥åããå¹æçã«å¦ç¿ã§ãã¦ããã¨ãããã£ã¼ãããã¯ãããã£ã¦ãã¾ãã
å¦ç¿è³æã¨ãã¦åãåãããã
ä¸åº¦ä½ã£ã¦ãã¾ãã°ããã¾ãã¾ãªå ´é¢ã§æ´»ç¨ãããã¨ãã§ãããããããã¾ãã
ä¾ãã°ä»¥ä¸ã®ãããªä½¿ãæ¹ãã§ãã¾ã:
- èªåãä¸å®ã ã¨æãããããã¯ãé¸ãã§å¦ç¿ãã
- ã³ã¼ãã¬ãã¥ã¼ã®ã³ãã¥ãã±ã¼ã·ã§ã³ã®éã«ãè³æã¨ãã¦ä½¿ã
- ã¿ã¹ã¯ã®ç©ºãæéãæ´»ç¨ããããã«å©ç¨ãã
ãããããªãé¡ã§ã¯ã¤ãºãä½æã§ãã
StackBlitzã¯ãéçºç°å¢ãç¨æããéã«ãå種ããã³ãã¬ã¼ããããåå°ãä½ããã¨ãã§ãã¾ãã
ãã®ãã³ãã¬ã¼ãã®ãããã§å種ãé¡ã«æ²¿ã£ãã¯ã¤ãºãä½æãããã¨ãã§ãã¾ãã
ä¾ãã°:
- Reactã®ãã³ãã¬ã¼ã
- ç´ ã®Reactã§ã®éçºç°å¢ãæä¾ãã¾ãã
- Reactã®å®è£ ã絡ãã§ããã¯ã¤ãºã§ã¯ãã®ãã³ãã¬ã¼ããå©ç¨ãã¦ãã¾ãã
- Next.jsã®ãã³ãã¬ã¼ã
- Next.jsããã¼ã¹ã«ããéçºç°å¢ãæä¾ãã¾ãã (使ã£ããã¨ã¯ãªãã§ã)
- Node.jsã®ãã³ãã¬ã¼ã
- Node.jsã§JavaScriptãå®è¡ããããã®ç°å¢ãæä¾ãã¾ãã
- ãããã¯ããã¹ãã³ã¼ãã®å ´åã¯ãã¡ãã®ãã³ãã¬ã¼ããå©ç¨ãã¦ãã¾ãã
éç¨ããä¸ã§é£ããã¨ãã
ä½æã«æéãããã
ããã¯ã©ããã¦ãããã¯ã«ãªã£ã¦ãã¾ãã¾ãã
ã¯ã¤ãºä½æã®éã¯ä»¥ä¸ã®ãããªæµããè¸ã¿ã¾ã:
- 1- ãããã¯ã®æ¤è¨
- ã©ãããç®çã®ã¯ã¤ãºã«ãããèãã¾ã
- 2- ãããã¯ã«æ²¿ã£ãã¯ã¤ãºå
容ãèãã
- ã©ããã£ãåºé¡å 容ã§ãã¯ã¤ãºã®ç®çãéæãã¦ãããããèãã¾ã
- 3- å種è³æã®ä½æ
- åé ã¾ã§ã«æ±ºããå 容ã§ãNotionã®è§£èª¬ããStackBlitzä¸ã®ã½ã¼ã¹ã³ã¼ããç¨æããããã¾ã
ãã®ä¸ã§ãç¹ã«é ã¨æéã使ãã®ã2çªç®ã®ã¯ã¤ãºå
容ãèããé¨åã§ãã
åºé¡å
容ãç解ãããããªãããã«ãããã¦åãçµãã ãã¨ã§ã¡ããã¨ç¥èãå¾ãããããã«ãã¨ãããã¨ãæ°ã«ããªããã¯ã¤ãºå
容ãæ¤è¨ãã¾ãã
ã¾ããã½ã¼ã¹ã³ã¼ãã«ãã¦ããããã«ç解ããããããã«å®ãããã¯ãã«ä¼¼ããããã°ã©ã ã«ãããã¨ãã£ã工夫ãããããã¾ãã
ãããã£ããã¨ããã£ã¦ããã¨ã1åä½æããã®ã«ããããã®æéãããã£ã¦ãã¾ãã¾ãã
ã¾ã¨ã
ã¯ã©ã¦ããã°ã§åãçµãã§ãããã¹ãã«ã¢ããã¯ã¤ãºãã®ä»çµã¿ã«ã¤ãã¦ç´¹ä»ããã¦ããã ãã¾ããã
ãã®åãçµã¿ã«ã¤ãã¦ã¯ãããããç¶ç¶çã«åãçµãã§ãããå
容ã®æ¡å
ãéç¨ã®ä»çµã¿ã®æ¹åãªã©ãèãã¦ããããã¨æãã¾ãã
ããã¾ã§èªãã§ããã ããããã¨ããããã¾ããã