You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Thank you for the great library. The only thing that seems to be missing is passing the breakpoint state as a prop so that prop value could change based on the viewport. I ended up adding a helper component that passes it. It is not ideal but maybe gives some ideas how to bake the functionality into the library core.
Thanks for the suggestion! I'm somewhat hesitant to add additional features given the overall existing complexity (and it seems like a simple functional wrapper like you've written above does the trick).
Can you perhaps show how this would look baked into the lib, used in JSX and utilizing the hypothetical new api?
Hi! Thank you for the great library. The only thing that seems to be missing is passing the breakpoint state as a prop so that prop value could change based on the viewport. I ended up adding a helper component that passes it. It is not ideal but maybe gives some ideas how to bake the functionality into the library core.
And for the usage the child component props must extend the BreakpointMatchProp
Now the SomeReactComponent has its onw props and in addigion the breakpoints too.
The text was updated successfully, but these errors were encountered: