Facebookã«ãã£ãŠäœæãããReactã©ã€ãã©ãªã¯ãWebéçºããã°ã©ããŒã®äœæ¥ãç°¡çŽ åãã匷åãªJavaScriptãã¬ãŒã ã¯ãŒã¯ã§ãã ãã ããReact JSããã°ãã䜿çšããŠããå Žåã¯ããã®ãã¬ãŒã ã¯ãŒã¯ã®æ©èœãå®å šã«æããã«ããããã«ãããã€ãã®è¿œå ã©ã€ãã©ãªãæå·ããªãããšã«åæããŸãã
æ¬æžã®ç¿»èš³è ã§ãããä»æ¥ç¿»èš³ãå ¬éããŠããèè ã¯ãWebéçºã«ããããªãŒãã³ãœãŒã¹ãããžã§ã¯ãã®éèŠæ§ã«ã€ããŠçµéšããç¥ã£ãŠãããšè¿°ã¹ãŠããŸãã ãã ããGitHubã«ã¯éåžžã«å€ãã®Reactã©ã€ãã©ãªãååšãããããããã°ã©ããŒã¯éžæè¢ã奪ãããŠããŸãã ãããã£ãŠãæ€èšäžã®ãªãã·ã§ã³ãããã€ãã®ãããžã§ã¯ãã«çµã蟌ããšããã§ãããã React with GitHubã§æã人æ°ã®ããããã10ã©ã€ãã©ãªã®æŠèŠãããããã«å²ãåœãŠãããæã®æ°ã§ã©ã³ã¯ä»ãããŸãã
ãããªã¢ã«UI
- GitHubã¹ã¿ãŒïŒ31,194
- ããŒãžã§ã³ïŒ0.20.0
- äŸåé¢ä¿ïŒ11
ãããªã¢ã«UIã¯ãReactã³ã³ããŒãã³ãã䜿çšããŠGoogleãããªã¢ã«ãã¶ã€ã³ã¹ã¿ã€ã«ã®ã¢ããªã±ãŒã·ã§ã³ãäœæã§ããã©ã€ãã©ãªã§ãã Webéçºãç°¡çŽ åããé åçãªãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ãšåäžããŒãžã®ã¢ããªã±ãŒã·ã§ã³ãäœæããŸãã
ãµãŒããŒåŽã¬ã³ããªã³ã°ã·ã¹ãã ã§
material-ui
ã©ã€ãã©ãªã䜿çšããå Žåãéçºè ã¯ãµãŒããŒãšã¯ã©ã€ã¢ã³ãã®äž¡æ¹ã«åãç°å¢ã䜿çšããå¿ èŠããããŸãã
ã©ã€ãã©ãªã¯ã次ã®ã³ãã³ãã§ã€ã³ã¹ããŒã«ã§ããŸãã
npm install material-ui
Material UIã®è©³çŽ°ã¯ãã©ã€ãã©ãªã®GitHubãªããžããªãšãã®å ¬åŒWebãµã€ãã§ç¢ºèªã§ããŸãã
CodePenãæºåããã©ã€ãã©ãªã䜿çšããäœæ¥ã®äŸã次ã«ç€ºããŸãã
è»ã®ãã¶ã€ã³
- GitHubã¹ã¿ãŒïŒ20,995
- ããŒãžã§ã³ïŒ3.0.1
- äŸåé¢ä¿ïŒ42
Ant-Designã¯ããããžã§ã¯ãã«çŽ æµãªã³ã³ãããŒã«ãè¿œå ã§ããReactããŒã¹ã®ã©ã€ãã©ãªã§ãã ããã¯ããã¹ã¯ãããã¢ããªã±ãŒã·ã§ã³ãäœæããããã«ç¹å¥ã«èšèšãããŠãããäœæ¥ããã®ã¯éåžžã«å¿«é©ã§ãããçµæãšããŠåŸããããã®ã¯ãã¢ããªã±ãŒã·ã§ã³ãŠãŒã¶ãŒãããã奜ããšèšãããšãã§ããŸãã
Ant-Design Libraryã¯äžåœã§éçºãããŠããŸãã ãã ããã³ãã¥ããã£ã®åªåã®ãããã§ãå®æ§çã«è±èªã«ç¿»èš³ãããŠãããããè±èªã話ãéçºè ãã¢ã¯ã»ã¹ã§ããŸãã
ã©ã€ãã©ãªã¯æ¬¡ã®ããã«ã€ã³ã¹ããŒã«ã§ããŸãã
npm install antd
Ant-Designã¯éåžžã«äººæ°ã®ãããããžã§ã¯ãã§ããããããã®ã©ã€ãã©ãªã«é¢ããå€ãã®æçšãªæ å ±ãGitHubãªããžããªãšãã®Webãµã€ãã«ãããŸãã ãããŠãããã«ãã®äœ¿çšäŸããããŸãã
ã¹ããŒãªãŒããã¯
- GitHubã¹ã¿ãŒïŒ16,559
- ããŒãžã§ã³ïŒ1.0.0
- äŸåé¢ä¿ïŒ12
ãµãŒããŒåŽã®ã¢ããªã±ãŒã·ã§ã³éçºã¯ãMeteorãFirebaseãªã©ã®å°çšãã¬ãŒã ã¯ãŒã¯ã䜿çšããŠç°¡çŽ åã§ããŸãã React StoryBookã¯ãã¯ã©ã€ã¢ã³ãåŽã¢ããªã±ãŒã·ã§ã³ã®éçºè ã«åãæ©äŒãæäŸããã©ã€ãã©ãªã§ãã
StoryBookã䜿çšãããšãReactã¢ããªã±ãŒã·ã§ã³ã®ãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ã³ã³ããŒãã³ããäœæããReactã³ã³ããŒãã³ãã®æäœãç°¡çŽ åããã€ã³ã¿ã©ã¯ãã£ããªã°ã©ãã£ã«ã«ç°å¢ã§å€èŠ³ãã«ã¹ã¿ãã€ãºã§ããŸãã
StoryBookã¯æ¬¡ã®ããã«ã€ã³ã¹ããŒã«ã§ããŸãã
npm i -g @storybook/cli cd my-react-app getstorybook
StoryBookãã€ã³ã¹ããŒã«ãããã次ãå®è¡ããå¿ èŠããããŸãã
npm run storybook
ãã®çŽ æŽããããããžã§ã¯ãã®è©³çŽ°ã¯ã å ¬åŒãŠã§ããµã€ããšGitHubãªããžããªã®ããŒãžã«ãããŸã ã
ã®ã£ãããŒ
- GitHubã¹ã¿ãŒïŒ15.712
- ããŒãžã§ã³ïŒ1.9.130
- äŸåé¢ä¿ïŒ51
Gatsbyã¯ãReact JSãæèŒããé«ééçãµã€ããžã§ãã¬ãŒã¿ãŒã§ãã Gatsbyã䜿çšãããšãããã°ã©ãã³ã°ã«æéããããã«ããã¬ãŒã³ããã¹ãã®ãããªãã®ãåªããWebãµã€ãã«å€æã§ããŸãã
éçããŒãžãžã§ãã¬ãŒã¿ã¯ãå€ãã®Webãããžã§ã¯ãã§äœ¿çšãããŠããŸãã Gatsbyã®ãããã§ããããã®ããŒãžã¯ç¶æããã³æ¡åŒµãç°¡åã§ãã
Webéçºè ãšããŠãReactã§ãµã€ãã®äœæã«å€ãã®æéãè²»ãããå ŽåãGatsbyã¯ééããªãããªãã«ã¢ããŒã«ããŸãã
Gatsbyã¯æ¬¡ã®ããã«ã€ã³ã¹ããŒã«ã§ããŸãã
npm install gatsby
ãããžã§ã¯ãã«ã¯ãã³ãã³ãã©ã€ã³ããŒã«ãå«ãŸããŠããŸãã ãããã€ã³ã¹ããŒã«ããã«ã¯ã次ã®ã³ãã³ããå®è¡ããŸãã
npm install --global gatsby-cli
ãã®ã©ã€ãã©ãªã®è©³çŽ°ã¯ãGitHubã®ãªããžããªãšãã®Webãµã€ãã§ç¢ºèªã§ããŸãã
é µçŽ
- GitHubã¹ã¿ãŒïŒ11,846
- ããŒãžã§ã³ïŒ3.2.0
- äŸåé¢ä¿ïŒ11
Enzymeã¯ãReactããŒã¹ã®è»œéãã¹ãã©ã€ãã©ãªã§ãReactãããžã§ã¯ãããã¹ãããããã®JSãŠãŒãã£ãªãã£ãšããŠæ©èœããŸãã ããã«ããã®å©ããåããŠãã¹ããŒãã¡ã³ããèšå®ããŠãReactã³ã³ããŒãã³ãã®åºåã確èªããéçºè ãé¢å¿ãæã€ããŒã¿ã䜿çšããŠä»ã®æäœãå®è¡ã§ããŸãã
Enzymeã®ååã¯ãjQuery APIãã·ãã¥ã¬ãŒãããŠDOMããã€ãã¹ããDOMã§ããŸããŸãªæäœãå®è¡ããããšã§ãã ã©ã€ãã©ãªã¯ããŸããŸãªçš®é¡ã®ã¬ã³ããªã³ã°ããµããŒãããŠããŸãã
Enzymeã®ããå Žæã§ã¯ãMochaãExpectãChaiãJasmineãªã©ãä»ã®ã©ã€ãã©ãªããã¹ãçšã«ç°¡åã«äœ¿çšã§ããŸãã
ã©ã€ãã©ãªã®äœ¿çšã¯ç°¡åã§ãã€ã³ã¹ããŒã«ã«ã€ããŠãåãããšãèšããŸãã
npm install enzyme
Enzymeã®è©³çŽ°ã«ã€ããŠã¯ãã©ã€ãã©ãªã®GitHubãªããžããªãšãã®Webãµã€ããåç §ããŠãã ããã
èšèšå³
- GitHubã¹ã¿ãŒïŒ7,762
- ããŒãžã§ã³ïŒ1.34.0
- äŸåé¢ä¿ïŒ8
ãã«ãŒããªã³ãã¯ãæ確ã«å®çŸ©ãããå éšããã€ã¹ãšåªããã³ãŒãåå©çšæ©èœãåãããã¹ã¯ãããã¢ããªã±ãŒã·ã§ã³åãã®æŽç·ŽãããWebããŒã¹ã®ã€ã³ã¿ãŒãã§ã€ã¹ã®éçºã«éåžžã«å¹æçãªã°ã©ãã£ã«ã«ã€ã³ã¿ãŒãã§ã€ã¹ãåããReactããŒã«ãããã§ãã
ãã®ã©ã€ãã©ãªã¯äž»ã«ãã¹ã¯ãããã¢ããªã±ãŒã·ã§ã³çšã«äœæãããŸããããã¢ãã€ã«ãããžã§ã¯ãã®éçºã«å¿ èŠãªæ©èœãè¿œå ããå¯èœæ§ã¯éåžžã«é«ãã§ãã ãŸããAngularJSãVue.jsãªã©ã®JSãã¬ãŒã ã¯ãŒã¯ãšçµã¿åãããŠäœ¿çšââã§ãããããåªããæè»æ§ãåããŠããŸãã
ãã«ãŒããªã³ãã¯ãCSSãTypeScriptãããã³JavaScriptããµããŒãããŠããŸãã
ã©ã€ãã©ãªãã€ã³ã¹ããŒã«ããã«ã¯ã次ã®ã³ãã³ãã䜿çšããŸãã
npm install --save @blueprintjs/core
ãã«ãŒããªã³ãã®è©³çŽ°ã«ã€ããŠã¯ãGitHubã®ãªããžããªããã³ãããžã§ã¯ãã®Webãµã€ããåç §ããŠãã ãã ã
ã¹ãã¯ã¿ã¯ã«
- GitHubã¹ã¿ãŒïŒ5693
- ããŒãžã§ã³ïŒ4.0.4
- äŸåé¢ä¿ïŒ16
Spectacleã¯ãWebãã¬ãŒã³ããŒã·ã§ã³çšã®é«å質ã®åçã¹ã©ã€ããäœæããããã«èšèšãããReactããŒã¹ã®ã©ã€ãã©ãªã§ãã Reactã³ã³ããŒãã³ãã䜿çšããŠãã¬ãŒã³ããŒã·ã§ã³ãäœæã§ããŸãã
ã©ã€ãã©ãªã«ã¯ã
<Slide>
ã
<BlockQuote>
ãªã©ã®ããã«äœ¿çšã§ããã³ã³ããŒãã³ãããããŸãã ããã«ããããã¬ãŒã³ããŒã·ã§ã³ãç°¡åã«äœæã§ããŸãã
ã©ã€ãã©ãªã¯æ¬¡ã®ããã«ã€ã³ã¹ããŒã«ã§ããŸãã
npm install spectacle
éçºè ã¯Webãã¬ãŒã³ããŒã·ã§ã³ã®èšèšã«äœ¿çšãããããç¬èªã®ã¢ã»ã³ããªæ§æãäœæãããããã³ãã¬ãŒãæ§æã䜿çšã§ãããããSpectacleã«ã¯äžå®ã®æè»æ§ããããŸãã
Spectacleã®è©³çŽ°ã«ã€ããŠã¯ãGitHubãšãã®Webãµã€ãã®ã©ã€ãã©ãªãªããžããªãã芧ãã ãã ã ããã§ã¯ãSpectacleã䜿çšãããã¬ãŒã³ããŒã·ã§ã³ã®äœæã«é¢ãããã¥ãŒããªã¢ã«ãèªãããšãã§ããŸãã
ãšã¬ã¡ã³ã¿ã«UI
- GitHubã¹ã¿ãŒæ°ïŒ3,848
- ããŒãžã§ã³ïŒ0.6.1
- äŸåé¢ä¿ïŒ2
Elemental UIã¯ãé åçãªãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ãéçºããããã®éåžžã«æè»ã§å¹ççãªãã¬ãŒã ã¯ãŒã¯ã§ãã Reactçšã«èšèšãããŠãããCSSã«åºã¥ããŠããŸãã
ãã®ãã¬ãŒã ã¯ãŒã¯ã¯ãããªã¢ã«UIã«äŒŒãŠããŸãããã¯ããã«ã³ã³ãã¯ãã§ãã npmããã€ã³ã¹ããŒã«ãã BrowserifyãŸãã¯Webpackã䜿çšããŠãããžã§ã¯ãã«åã蟌ãããã«èšèšãããŠããŸãã
Elemental UIãã€ã³ã¹ããŒã«ããã«ã¯ã次ã®ã³ãã³ãã䜿çšããŸãã
npm install elemental
ãã®ãã¬ãŒã ã¯ãŒã¯ã®è©³çŽ°ã¯ã圌ã®GitHubãªããžããªã®ããŒãžãšåœŒã®Webãµã€ãã§èŠã€ããããšãã§ããŸãã
ã°ãã¡ãã
- GitHubã¹ã¿ãŒæ°ïŒ2,621
- ããŒãžã§ã³ïŒ2.0.0-alpha.5
- äŸåé¢ä¿ïŒ8
Grommetã¯ãReactããŒã¹ã®ã©ã€ãã©ãªã§ããããã®å©ããåããŠäœæãããWebãããžã§ã¯ãã§äœæ¥ããéã®ãŠãŒã¶ãŒãšã¯ã¹ããªãšã³ã¹ãåäžãããããšãç®çãšããŠããŸãã 説æããããã«ãã°ãã¡ããã¯ããšã³ã¿ãŒãã©ã€ãºã¢ããªã±ãŒã·ã§ã³åãã®æãé«åºŠãªUXãã¬ãŒã ã¯ãŒã¯ãã§ãã
ããã¯ãã³ã³ãããŒã«ããã«ããã°ã€ã³ç»é¢ãæ€çŽ¢ç»é¢ãããŒã¿ã®èŠèŠåãç®çãšããããŸããŸãªèŠçŽ ã®ã«ã¹ã¿ã ã³ã³ããŒãã³ããå«ãéåžžã«æè»ãªã©ã€ãã©ãªã§ãã
æšæºã®Grommetã³ã³ããŒãã³ãã䜿çšããŠãåå©çšã«é©ãã䟿å©ã§é åçãªã€ã³ã¿ãŒãã§ãŒã¹èŠçŽ ãäœæã§ããŸãã
ã°ãã¡ããã®ã³ã³ããŒãã³ãã¯ãé害ãæã€äººã ã«ãã䜿çšãèæ ®ããŠèšèšãããŠãããã¯ãã¹ãã©ãŠã¶ã®ãµããŒãã«ãã£ãŠåºå¥ãããããŒãã䜿çšããå€èŠ³ã®ã«ã¹ã¿ãã€ãºããµããŒãããŠããŸãã
次ã®ããã«Grommetãã€ã³ã¹ããŒã«ã§ããŸãã
npm install -g grommet
Grommetã®è©³çŽ°ã«ã€ããŠã¯ã GitHub ã®ãããžã§ã¯ããªããžããªããã³å ¬åŒWebãµã€ããåç §ããŠãã ããã Grommetã®åºæ¬ãåŠã¶ã®ã«åœ¹ç«ã€CodePen ã®äŸ¿å©ãªããŒãžã次ã«ç€ºããŸãã
ã¢ã¶ã€ã¯
- GitHubã¹ã¿ãŒæ°ïŒ2,284
- ããŒãžã§ã³ïŒ1.4.4
- äŸåé¢ä¿ïŒ31
Mozaikã¯ãWebã¢ããªã±ãŒã·ã§ã³ã«çµ±åã§ããåªããã³ã³ãããŒã«ããã«ãäœæããããã®åªããã©ã€ãã©ãªã§ãã
åºç¯ãªã«ã¹ã¿ãã€ãºãšã¬ã¹ãã³ã·ããã¶ã€ã³ããµããŒãããŸãã ç¹ã«ã倧ç»é¢ã®ãã¹ã¯ãããã³ã³ãã¥ãŒã¿ãŒã§ãã¹ããŒããã©ã³ã§ãããããããã©ãããã©ãŒã ã«é©ããŠããŸãã
Mozaikã«ã¯å€ãã®æšæºããŒãããããŸãããéçºè ã¯ãããã«éå®ãããŸããã ãã®ã©ã€ãã©ãªã¯ãå¿ èŠã«å¿ããŠå€ãã®ã³ã³ãããŒã«ããã«ãäœæã§ããããã«ãã°ãªããããŒã¹ã®èŠçŽ ã®é 眮ãã¢ããªã±ãŒã·ã§ã³ã®ãµãŒããŒéšåãšã®æé©åããã察話ããµããŒãããŠããŸãã
GitHubãšãããžã§ã¯ãWebãµã€ãã® ãªããžããªã®è©³çŽ°ã«ã€ããŠã¯ãMozaikãåç §ããŠãã ããã
ãŸãšã
Reactã®ã©ã€ãã©ãªã確èªããŸãããåã©ã€ãã©ãªã¯ãå²ãåœãŠãããã¿ã¹ã¯ã«å¯Ÿå¿ããŠããŸãã ãããã®ã©ã€ãã©ãªã¯ãã€ã³ã¿ãŒãã§ã€ã¹ã®èšèšãWebãµã€ã蚪åè ã®ãŠãŒã¶ãŒãšã¯ã¹ããªãšã³ã¹ã®åäžããããžã§ã¯ãã®ãã¹ããéçãµã€ãã®äœæã«äœ¿çšã§ããŸãã ãããã®ã©ã€ãã©ãªã¯ãã¹ãŠReactã«ãªã³ã¯ãããŠãããç¹å®ã®ãããžã§ã¯ãã®ããŒãºãæºãããŠããå Žåãéçºãä¿é²ããã³ã¹ããŒãã¢ããã§ããŸãã
芪æãªãèªè ïŒ Reactã§Webãããžã§ã¯ããéçºããŠããå Žåããæ°ã«å ¥ãã®ãå®çžŸã®ããã©ã€ãã©ãªããããšç¢ºä¿¡ããŠããŸãã ãããã«ã€ããŠæããŠãã ããã