First commit: this starts off on a pretty solid foot because we iterated on it a lot already.
This commit is contained in:
13
src/index.js
Normal file
13
src/index.js
Normal file
@ -0,0 +1,13 @@
|
||||
import 'babel-polyfill';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import App from './components/app';
|
||||
import remark from 'remark';
|
||||
import slug from 'remark-slug';
|
||||
import content from './content';
|
||||
|
||||
var ast = remark().use(slug).run(remark().parse(content));
|
||||
|
||||
ReactDOM.render(
|
||||
<App ast={ast} content={content} />,
|
||||
document.getElementById('app'));
|
Reference in New Issue
Block a user