1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

エンジニアスタンプラリー~フロントエンド編#14

Last updated at Posted at 2019-10-30

企画主旨

Frontend Developer Roadmapをひたすら巡回する企画
詳しくはこちら

今回の実施内容

静的サイトジェネレータ(Static Site Generator, SSG)
SSRとごっちゃになるヤツ

Static Site Generators

GatsbyJS

Quick Start | GatsbyJSを参考にすると、一瞬でひな形が作成される。。。
が、今まで作ってきた構成は失わせたくないので、
gatsby-starter-mobxをベースに作成。

index.js
import React from "react"
import { Provider } from 'mobx-react';

import App from '../components/App';
import SkillStore from '../stores/SkillStore';
import '../main.scss';
import 'bootstrap/dist/css/bootstrap.min.css';

const store = new SkillStore();

const IndexPage = () => (
  <Provider store={store}>
    <App />
  </Provider>
)

export default IndexPage

成果物

結局静的サイトとは何だったのか。
https://github.com/tonchan1216/WDR-frontend/tree/v14

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?