issues
search
nukosuke
/
loq
[WIP] オレオレブログエンジン
MIT License
0
stars
2
forks
source link
404 NOT FOUNDページ
#87
Open
nukosuke
opened
8 years ago
nukosuke
commented
8 years ago
初期アクセス時にサーバが404を返す時は404ページはサーバ側でレンダリングする。
いったんReactが起動してからreact-routerでNOT FOUNDになったものはReact側で404ページに書き換える。
react-routerのparamsを使ったroute(例えば/:username)などはJSON APIから404が帰ってきた時点でtransitionTo()で404ページに飛ばす。