iT邦幫忙

2017 iT 邦幫忙鐵人賽
DAY 9
0
Modern Web

RRRR的世界 (Ruby on Rails + React + Redux)系列 第 9

Day 9, React_on_rails Doc 的重點整理

睏寶先在這裡祝大家平安夜快樂。

今天是Doc整理的部分,針對React_on_Rails的文件有兩份:

  1. Github Doc
  2. Gitbook

我這邊無法講完,因為我沒看完,都是有問題才去查的。而且我也是最近才看到Gitbook,所以就不介紹他了,只講Github的部分。

  1. Basic

    1. Installation overview
      這邊不是教你安裝,他是講了有兩個Demo範例,一個在spec/dummy,另一個在react-webpack-rails-tutorial
      還有講client資料夾底下的設置,跟client資料夾"以外"的設置。

    2. Generator
      這個地方在講Generator怎麼用(等於下了--help參數),以及產生的資料夾架構為何。

      • startup: This contains the entry point files for webpack. It defaults to a single file that is used for server and client compilation, but if these need to be different, then you can create two webpack configurations with separate endpoints.
      • containers: "smart components" (components that have functionality and logic that is passed to child "dumb components").
      • components: includes "dumb components", or components that simply render their properties and call functions given to them as properties by a parent component. Ultimately, at least one of these dumb components will have a parent container component.
  2. API

    1. JavaScript API
      介紹Javascript API的用法,之前也提過可以用來找Authenticity Token
    2. Hot Reloading View Helpers
      不用一直按F5 F5 F5
  3. Additional Reading

    1. Project structure
      很重要先列,專案資料夾的架構,必讀!!
    2. Redux
      這很像沒什麼講解,只有reducer幾行而已
    3. router
      恩...這邊提供的範例是server rendering的react-router,我還真不知道可以這樣用...
    4. rails assets
      必讀!!這個你不看會很頭大,會發現deploy時很多digest搞不懂
    5. heroku deployment
      Deploy到heroku上的一些說明,想部署到heroku的再看~

    這邊好多,就不一個一個列了,基本上就是要用到的時候來看!

以上是我覺得的重點,如果後續文章有提到,會再補上相關文件在哪裡!
這兩天人在台中遊玩,希望我第十天還記得打QQ
OK好,晚安各位!!


上一篇
Day 8, React_on_rails 先玩點範例 邊玩邊學
下一篇
Day 10, npm, webpack... 那些好用的工具寫一起
系列文
RRRR的世界 (Ruby on Rails + React + Redux)30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言