score:0
both connect
and the redux provider
expect single child components, so one thing to check is: from what i'm seeing on the the antd docs, the table component can return multiple children, try wrapping your table component in a fragment.
otherwise, are you sure it's coming from this file?
maybe the problem comes from the redux provider, in which case:
react.children.only expected to receive a single react element child navigator will help
also, just in case, even though that would be very surprising to me, have you tried removing the white space in between your parentheses and the actual component you return? maybe there is a no-break space?
return <table
columns={tablecolumn}
datasource={tabledata}
rowkey={(record) => record.id}
/>
Source: stackoverflow.com
Related Query
- "React.Children.only expected to receive a single React element child" error when putting <Image> and <TouchableHighlight> in a <View>
- React.Children.only expected to receive a single React element child error
- What causes an "React.Children.only expected to receive a single React element child." error in an apollo client rendered component
- React bootstrap Tooltip throws error 'React.Children.only expected to receive a single React element child.'
- Error React.Children.only expected to receive a single React element child
- Uncaught (in promise) Error: React.Children.only expected to receive a single React element child
- React.Children.only expected to receive a single React element child. Error when inserting component
- Uncaught Error: React.Children.only expected to receive a single React element child
- Getting this React.Children.only expected to receive a single React element child error for using <Link> in Next.js
- why i am getting this error on using Link tag from next/link? Error: React.Children.only expected to receive a single React element child
- Next.js: Error: React.Children.only expected to receive a single React element child
- Invariant Violation: React.Children.only expected to receive a single React element child
- React.children.only expected to receive a single react element child Navigator
- React Router v4 - Error: React.Children.only expected to receive a single React element child
- React-google-maps infowindow `React.Children.only expected to receive a single React element child.`
- React.Children.only expected to receive a single React element child in React Router v4
- Nextjs - Reactjs - Links patterns - Invariant Violation: React.Children.only expected to receive a single React element child
- React Js : React.Children.only expected to receive a single React element child
- React.Children.only expected to receive a single React element child.?
- React.Children.only expected to receive a single React element child with <Link > component
- ReactQuill (rich text) - Error: React.Children.only expected to receive a single React element child - React
- React.Children.only expected to receive a single React element child Stuck
- Error: React.Children.only expected to receive a single React element child
- I am getting an Error: React.Children.only expected to receive a single React element child in my index.js page. Is there a workaround
- How to fix React.Children.only expected to receive a single React element child in react.js?
- Wordpress GutenBurg Block - React.Children.only expected to receive a single React element child
- React error 'Failed propType: Invalid prop `children` supplied to `Provider`, expected a single ReactElement'
- React SSR error -- Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object
- React Memo Feature gives :- Uncaught Error: Element type is invalid: expected a string but got: object
- Element type is invalid: expected a string (for built-in components) or a class/function React Error
More Query from same tag
- Mapping through elements in array and displaying them in a paragraph
- React component State clears after adding additional query parameters to the URL
- how to make option selected by default in react
- Redirect user to Dashboard if already authenticated in reactjs
- Showing an Invalid Date, how can I fix this?
- passing default theme in material UI5
- Why does forEach work with e.target.children but not getElementById children?
- html-webpack-plugin Entrypoint undefined = index.html
- how to call onStart function in react-countdown?
- Wrapping React components in other React components that mange behavior props.
- React: Why is my state undefined on the initial render from useEffect?
- React Context - dispatch from a function
- Where can I add js libraries in reactJs project?
- Using React Redux, when click the link on the side bar (to redirect) to clear the input in the search bar at the same time
- How to render a list of users from ReqRes API with React
- Dynamically generating JSX in React
- Shopify Polaris: How to make an item active in ActionList?
- How To Change Active tabs Color in reactjs with dynamically
- How to dynamically set defaultValue in react-hook-form
- Add HTML tags dynamically using JSX
- Change class of dynamically generated components in REACT without manually creating a separate state for each?
- TypeScript Property 'navigation' is missing in type but required in type 'Props' React Native
- Testing a window event addEventListener with a callback using enzyme, mocha and chai
- Unable to invoke props function passed to children in a loop reactjs
- CSS display problem in mobile version for my map leaflet width just an header and footer
- Autoselect text in input - Reactjs
- How to send data using api.post?
- React: parent component props in child without passing explicitly
- Problem of data recovery from a web API with javascript REACT
- How to style {Switch} component from react-router-dom? I tried wrapping it with <div> and does not work