Skip to main content

Map JSON Database to MDX

One min read
Roger Jiang

This code snippet does not work:

import { map_all_parents } from "../src/data/index.ts"
console.dir(map_all_parents)

Can you import variables into MDX?

You can not import JSON into MDX live editor

import rem_json from "../src/data/rem.json"
Live Editor
Result
Loading...
This is an apple 馃崕