Closed dobromir-hristov closed 5 years ago
Thanks for the catch! I just made one small additional improvement to transparently pass all propsData
through mountRoutes
. 🙂
Was not sure whether I should do that or what I did. Decided to be more explicit 😆
Do you think a comment saying that this element is combining Render functions with JSX is appropriate?
Good question. 🙂 I'm leaning towards not having a comment, simply because there quite a few places in the codebase where I use a render function with JSX and I'd rather not add comments to all of them. 😄
This fixes a wrongly written unit test for the
nav-bar-routes
component.The test was not assigning the provided prop on each test.