smooth-code / smooth.js

Code driven CMS powered by GraphQL & React.
MIT License
26 stars 10 forks source link

feat: block custom props #29

Closed salper closed 5 years ago

salper commented 5 years ago

User should be able to pass custom props to blocks. The original use case is the need to distinguish between layouts (display a block depending on the type of post).

gregberge commented 5 years ago

We can do it in userland using React Context, more explicit.