Skip to content

Commit 08e2ec4

Browse files
author
Dominic Coelho
committed
1. Add documentation for index.js and test.mdx.
1 parent df726bd commit 08e2ec4

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,11 @@ import React from 'react';
22
import { render } from 'react-dom';
33
import MDXDocument from './test.mdx';
44

5-
// const Zip = () => <div>boop</div>;
5+
/**
6+
* Experiment to test MDX -> JSX transpilation through babel.
7+
*
8+
* Outputs MDXDocument, changing MDXDocument will cause webpack
9+
* to hot-reload with new contents.
10+
*/
11+
612
render(<MDXDocument />, document.getElementById('root'));

test.mdx

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<!-- This is an MDX file that is imported in index.js and transpiled to
2+
JSX and then rendered, feel free to change this! -->
3+
14
# Hello, _world_!
25

36
Below is an example of JSX embedded in Markdown. <br /> **Kara and dom were successful!**

0 commit comments

Comments
 (0)