mdx icon indicating copy to clipboard operation
mdx copied to clipboard

do not add empty object `= {}` as default `props`

Open dimaMachina opened this issue 1 year ago • 4 comments

Initial checklist

Problem

I saw in the generated code an empty object as default props props = {}, this is unneeded as props are always object

export default function MDXContent(props = {}) {
image

Solution

export default function MDXContent(props) {

Alternatives

no alternative

dimaMachina avatar Oct 19 '24 10:10 dimaMachina