Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Props #6

Closed
jamesknelson opened this issue May 1, 2018 · 2 comments
Closed

Props #6

jamesknelson opened this issue May 1, 2018 · 2 comments

Comments

@jamesknelson
Copy link

It would be nice to define how props are passed to components.

MDXC supports params paramName at the top of the file, along with imports/exports. I think ideally, it'd look more like props { destructured, props, ...etc }.

@jamesknelson jamesknelson changed the title Params Props May 1, 2018
@ticky
Copy link
Member

ticky commented Jun 29, 2018

Markdown Component Loader also handles this by giving Markdown components access to the entire props object.

@johno
Copy link
Member

johno commented Apr 30, 2019

Going to go ahead and close this since props are exposed to the global scope and can be accessed in JSX blocks. Thanks for opening!

@johno johno closed this as completed Apr 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants