Relative Content

Tag Archive for reactjscomponentsjsxmdxcontentlayer

How to create a custom JSX component with contentlayer?

I tried to create a custom component with contentlayer, but it was not working as expected. At first, I thought that I have to import the custom component inside the .mdx file. But, every time I do so, contentlayer will throw errors and not transform my .mdx file to json format. As I was digging through the problem, I found a solution which I shared below.