module.exports = {
mode: "production" <marker modes>
}
Created
August 20, 2018 20:52
-
-
Save montogeek/0a600e1c63a58d9ef2b8395e4aea3773 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre> | |
<code> | |
module.exports = { | |
<ul> /* This would be rendered by the React component */ | |
<li clas="default">production</> | |
<li>development</li> | |
<li>none</li> | |
</ul> | |
} | |
</code> | |
</pre> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pseudocode | |
import Modes from 'modes' // React component which would display a dropdown or whatever | |
// This could be a dictionary like: `{ "marker": <ReactComponent /> }` | |
const tree = // Markdown tree, actually an array | |
const modePosition = findModeMarker(tree) | |
tree[modePosition] = <Modes /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment