Added render props
Allowing for render props. This should simplify a lot of the issues people have using refs.
Example usage:
<NotificationSystem>
{({ addNotification }) => (
<button onClick={() => addNotification({ message: 'New notification' })}>Add Notification</button>
)}
</NotificationSystem>
Coverage decreased (-79.04%) to 16.544% when pulling ef745789e3f48318a96eb4ee23dffba172b81bbe on dyst5422:master into e2c4a140ab2fede650e23a7b6fa1a7ebebbfa337 on igorprado:master.
Very confused as to why the coverage went down. I just added a single test for the render props and changed nothing else
@igorprado Can I get some feedback on making this one happen?
@dyst5422 Will get back to you.
Any update on this one?