summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src/index.js
blob: 8c47b38e085f6c65e625079f76da0e835482a8dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const React = require('react');
const GitBook = require('gitbook-core');

const ThemeBody = React.createClass({
    render() {
        return (
            <div>
                My Base theme for gitbook
            </div>
        );
    }
});

module.exports = GitBook.createPlugin((dispatch, state) => {
    dispatch(GitBook.registerComponent(ThemeBody, { role: 'Body' }));
});