HandlebarLabs/currency-converter-starter

invariant violation: React.Children.only expected to receive a single React element child.

kayafatih-net opened this issue · 2 comments

where am i doing wrong. I did copy and paste

this error is located at in AlertProvider (at index.js:22)

This isn't happening with the example code provided so I'm going to close this unless you can show me how to reproduce the error.

I have a feeling you wrote something differently though - make sure you're only passing one child to the AlertProvider component, like so:

export default () => (
  <Provider store={store}>
    <AlertProvider>
      <Navigator onNavigationStateChange={null} />
    </AlertProvider>
  </Provider>
);