react-router icon indicating copy to clipboard operation
react-router copied to clipboard

React Router v4 Match children attribute error

Open ckwong90 opened this issue 9 years ago • 2 comments

Version

4.0.0

Steps to reproduce

<BrowerRouter>
    <Match children={()=><div>Test</div>} />
</BrowerserRouter>

Error "TypeError: Cannot read property 'length' of undefined:"

<BrowerRouter>
    <Match pattern="/" children={()=><div>Test</div}> />
</BrowerserRouter>

Works!

In the documentation example, the children attribute is shown by itself. But I got an error

ckwong90 avatar Jan 18 '17 06:01 ckwong90

The API is changing from the published version, so this is no longer a bug that exists (because the code doesn't exist!).

timdorr avatar Jan 18 '17 17:01 timdorr

@timdorr Awesome that this will be supported in the new version.

Is there a timeline yet for the beta release?

avindra avatar Jan 23 '17 17:01 avindra