mdx
mdx copied to clipboard
do not add empty object `= {}` as default `props`
Initial checklist
- [X] I read the support docs
- [X] I read the contributing guide
- [X] I agree to follow the code of conduct
- [X] I searched issues and couldn’t find anything (or linked relevant results below)
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 = {}) {
Solution
export default function MDXContent(props) {
Alternatives
no alternative