react-breadcrumbs throwing error when using with router












0















React Breadcrumbs is throwing some error when using with Router.



I am following this tutorial for implementation.



http://learnreact.robbestad.com/breadcrumbs



Below is the code:



var Breadcrumbs = require('react-breadcrumbs');

const Routes = () => (
<BrowserRouter>
<div>
<Header />
<MegaMenu />
{Breadcrumbs}
<Route exact path='/' name='HomePage' component={HomePage}/>
<Route path='/celebrity' name='Celebrities' component={Celebrities}/>
<Route path='/axios' name='Axios' component={Axios}/>
<Route path='/brands' name='Brands' component={Brands}/>
<Footer />
</div>
</BrowserRouter>
);

export default Routes;


Below is the error:



Objects are not valid as a React child (found: object with keys {Breadcrumb, Breadcrumbs}). If you meant to render a collection of children, use an array instead.










share|improve this question



























    0















    React Breadcrumbs is throwing some error when using with Router.



    I am following this tutorial for implementation.



    http://learnreact.robbestad.com/breadcrumbs



    Below is the code:



    var Breadcrumbs = require('react-breadcrumbs');

    const Routes = () => (
    <BrowserRouter>
    <div>
    <Header />
    <MegaMenu />
    {Breadcrumbs}
    <Route exact path='/' name='HomePage' component={HomePage}/>
    <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
    <Route path='/axios' name='Axios' component={Axios}/>
    <Route path='/brands' name='Brands' component={Brands}/>
    <Footer />
    </div>
    </BrowserRouter>
    );

    export default Routes;


    Below is the error:



    Objects are not valid as a React child (found: object with keys {Breadcrumb, Breadcrumbs}). If you meant to render a collection of children, use an array instead.










    share|improve this question

























      0












      0








      0








      React Breadcrumbs is throwing some error when using with Router.



      I am following this tutorial for implementation.



      http://learnreact.robbestad.com/breadcrumbs



      Below is the code:



      var Breadcrumbs = require('react-breadcrumbs');

      const Routes = () => (
      <BrowserRouter>
      <div>
      <Header />
      <MegaMenu />
      {Breadcrumbs}
      <Route exact path='/' name='HomePage' component={HomePage}/>
      <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
      <Route path='/axios' name='Axios' component={Axios}/>
      <Route path='/brands' name='Brands' component={Brands}/>
      <Footer />
      </div>
      </BrowserRouter>
      );

      export default Routes;


      Below is the error:



      Objects are not valid as a React child (found: object with keys {Breadcrumb, Breadcrumbs}). If you meant to render a collection of children, use an array instead.










      share|improve this question














      React Breadcrumbs is throwing some error when using with Router.



      I am following this tutorial for implementation.



      http://learnreact.robbestad.com/breadcrumbs



      Below is the code:



      var Breadcrumbs = require('react-breadcrumbs');

      const Routes = () => (
      <BrowserRouter>
      <div>
      <Header />
      <MegaMenu />
      {Breadcrumbs}
      <Route exact path='/' name='HomePage' component={HomePage}/>
      <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
      <Route path='/axios' name='Axios' component={Axios}/>
      <Route path='/brands' name='Brands' component={Brands}/>
      <Footer />
      </div>
      </BrowserRouter>
      );

      export default Routes;


      Below is the error:



      Objects are not valid as a React child (found: object with keys {Breadcrumb, Breadcrumbs}). If you meant to render a collection of children, use an array instead.







      javascript reactjs ecmascript-6 breadcrumbs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 15 at 12:54









      H.HusainH.Husain

      549




      549
























          2 Answers
          2






          active

          oldest

          votes


















          0














          You shouldn't pass the reference directly but use it with React.createElement or in other words, in JSX land you should do just <Breadcrumbs />.



          If you look carefully at the code from the link you posted (http://learnreact.robbestad.com/breadcrumbs):



          var Breadcrumbs = require('react-breadcrumbs');

          MyComponent = React.createClass({
          render: function() {
          return (
          <div>
          <Breadcrumbs />{/* You see it here, <Breadcrumbs /> not {Breadcrumbs} */}
          </div>
          );
          }
          });


          It creates new React element and now let's check your code:



          var Breadcrumbs = require('react-breadcrumbs');

          const Routes = () => (
          <BrowserRouter>
          <div>
          <Header />
          <MegaMenu />
          {Breadcrumbs}{/* <-------- Here is the issue */}
          <Route exact path='/' name='HomePage' component={HomePage}/>
          <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
          <Route path='/axios' name='Axios' component={Axios}/>
          <Route path='/brands' name='Brands' component={Brands}/>
          <Footer />
          </div>
          </BrowserRouter>
          );

          export default Routes;


          If you replace {Bredcrumbs} with <Breadcrumbs />, it should just work:



          var Breadcrumbs = require('react-breadcrumbs');

          const Routes = () => (
          <BrowserRouter>
          <div>
          <Header />
          <MegaMenu />
          <Breadcrumbs />
          <Route exact path='/' name='HomePage' component={HomePage}/>
          <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
          <Route path='/axios' name='Axios' component={Axios}/>
          <Route path='/brands' name='Brands' component={Brands}/>
          <Footer />
          </div>
          </BrowserRouter>
          );

          export default Routes;


          You can read more about JSX in the official React documentation:
          https://reactjs.org/docs/introducing-jsx.html






          share|improve this answer































            -1














            I have used this library https://www.npmjs.com/package/react-breadcrumbs-dynamic][1] to implement the breadcrumbs.



            Created one route.js and imported the library



            import { Breadcrumb as BootstrapBreadcrumb } from 'react-bootstrap'
            import { Breadcrumbs, BreadcrumbsItem } from 'react-breadcrumbs-dynamic';
            import CrumbItem from '../components/common/breadcrumb/CrumbItem';


            Created the breadcrumbs container like this in route.js:



            const Routes = () => (
            <BrowserRouter>
            <div>
            <div className="breadcrumbs-container">
            <BreadcrumbsItem glyph='home' to={base_path}>
            Home Page
            </BreadcrumbsItem>
            <Breadcrumbs
            hideIfEmpty={{ active: true }}
            item={CrumbItem}
            container={BootstrapBreadcrumb}
            finalProps={{ active: true }}
            duplicateProps={{ to: 'href' }}
            />
            </div>
            <Route exact path='/' component={HomePage} />
            <Route path='/brands' component={Brands} />
            <Footer />
            </div>
            </BrowserRouter>
            );


            Given breadcrumbs items in Another component brands.js



            import { BreadcrumbsItem } from 'react-breadcrumbs-dynamic';
            render() {
            return (
            <BreadcrumbsItem to={'/brands'}>
            Brands
            </BreadcrumbsItem>
            )
            }


            Created link container separately



            import { Breadcrumb } from 'react-bootstrap'
            import { LinkContainer } from 'react-router-bootstrap'

            const CrumbItem = ({to, ...props}) => (
            <LinkContainer to={to}>
            <Breadcrumb.Item {...props}>
            </Breadcrumb.Item>
            </LinkContainer>
            )

            export default CrumbItem


            Note: Using bootstrap is optional






            share|improve this answer





















            • 1





              @Zoe : Edited the post and demonstrated how I have implemented and solved my problem, I hope this is fine now.

              – H.Husain
              Jan 20 at 9:36











            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54199301%2freact-breadcrumbs-throwing-error-when-using-with-router%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You shouldn't pass the reference directly but use it with React.createElement or in other words, in JSX land you should do just <Breadcrumbs />.



            If you look carefully at the code from the link you posted (http://learnreact.robbestad.com/breadcrumbs):



            var Breadcrumbs = require('react-breadcrumbs');

            MyComponent = React.createClass({
            render: function() {
            return (
            <div>
            <Breadcrumbs />{/* You see it here, <Breadcrumbs /> not {Breadcrumbs} */}
            </div>
            );
            }
            });


            It creates new React element and now let's check your code:



            var Breadcrumbs = require('react-breadcrumbs');

            const Routes = () => (
            <BrowserRouter>
            <div>
            <Header />
            <MegaMenu />
            {Breadcrumbs}{/* <-------- Here is the issue */}
            <Route exact path='/' name='HomePage' component={HomePage}/>
            <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
            <Route path='/axios' name='Axios' component={Axios}/>
            <Route path='/brands' name='Brands' component={Brands}/>
            <Footer />
            </div>
            </BrowserRouter>
            );

            export default Routes;


            If you replace {Bredcrumbs} with <Breadcrumbs />, it should just work:



            var Breadcrumbs = require('react-breadcrumbs');

            const Routes = () => (
            <BrowserRouter>
            <div>
            <Header />
            <MegaMenu />
            <Breadcrumbs />
            <Route exact path='/' name='HomePage' component={HomePage}/>
            <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
            <Route path='/axios' name='Axios' component={Axios}/>
            <Route path='/brands' name='Brands' component={Brands}/>
            <Footer />
            </div>
            </BrowserRouter>
            );

            export default Routes;


            You can read more about JSX in the official React documentation:
            https://reactjs.org/docs/introducing-jsx.html






            share|improve this answer




























              0














              You shouldn't pass the reference directly but use it with React.createElement or in other words, in JSX land you should do just <Breadcrumbs />.



              If you look carefully at the code from the link you posted (http://learnreact.robbestad.com/breadcrumbs):



              var Breadcrumbs = require('react-breadcrumbs');

              MyComponent = React.createClass({
              render: function() {
              return (
              <div>
              <Breadcrumbs />{/* You see it here, <Breadcrumbs /> not {Breadcrumbs} */}
              </div>
              );
              }
              });


              It creates new React element and now let's check your code:



              var Breadcrumbs = require('react-breadcrumbs');

              const Routes = () => (
              <BrowserRouter>
              <div>
              <Header />
              <MegaMenu />
              {Breadcrumbs}{/* <-------- Here is the issue */}
              <Route exact path='/' name='HomePage' component={HomePage}/>
              <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
              <Route path='/axios' name='Axios' component={Axios}/>
              <Route path='/brands' name='Brands' component={Brands}/>
              <Footer />
              </div>
              </BrowserRouter>
              );

              export default Routes;


              If you replace {Bredcrumbs} with <Breadcrumbs />, it should just work:



              var Breadcrumbs = require('react-breadcrumbs');

              const Routes = () => (
              <BrowserRouter>
              <div>
              <Header />
              <MegaMenu />
              <Breadcrumbs />
              <Route exact path='/' name='HomePage' component={HomePage}/>
              <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
              <Route path='/axios' name='Axios' component={Axios}/>
              <Route path='/brands' name='Brands' component={Brands}/>
              <Footer />
              </div>
              </BrowserRouter>
              );

              export default Routes;


              You can read more about JSX in the official React documentation:
              https://reactjs.org/docs/introducing-jsx.html






              share|improve this answer


























                0












                0








                0







                You shouldn't pass the reference directly but use it with React.createElement or in other words, in JSX land you should do just <Breadcrumbs />.



                If you look carefully at the code from the link you posted (http://learnreact.robbestad.com/breadcrumbs):



                var Breadcrumbs = require('react-breadcrumbs');

                MyComponent = React.createClass({
                render: function() {
                return (
                <div>
                <Breadcrumbs />{/* You see it here, <Breadcrumbs /> not {Breadcrumbs} */}
                </div>
                );
                }
                });


                It creates new React element and now let's check your code:



                var Breadcrumbs = require('react-breadcrumbs');

                const Routes = () => (
                <BrowserRouter>
                <div>
                <Header />
                <MegaMenu />
                {Breadcrumbs}{/* <-------- Here is the issue */}
                <Route exact path='/' name='HomePage' component={HomePage}/>
                <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
                <Route path='/axios' name='Axios' component={Axios}/>
                <Route path='/brands' name='Brands' component={Brands}/>
                <Footer />
                </div>
                </BrowserRouter>
                );

                export default Routes;


                If you replace {Bredcrumbs} with <Breadcrumbs />, it should just work:



                var Breadcrumbs = require('react-breadcrumbs');

                const Routes = () => (
                <BrowserRouter>
                <div>
                <Header />
                <MegaMenu />
                <Breadcrumbs />
                <Route exact path='/' name='HomePage' component={HomePage}/>
                <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
                <Route path='/axios' name='Axios' component={Axios}/>
                <Route path='/brands' name='Brands' component={Brands}/>
                <Footer />
                </div>
                </BrowserRouter>
                );

                export default Routes;


                You can read more about JSX in the official React documentation:
                https://reactjs.org/docs/introducing-jsx.html






                share|improve this answer













                You shouldn't pass the reference directly but use it with React.createElement or in other words, in JSX land you should do just <Breadcrumbs />.



                If you look carefully at the code from the link you posted (http://learnreact.robbestad.com/breadcrumbs):



                var Breadcrumbs = require('react-breadcrumbs');

                MyComponent = React.createClass({
                render: function() {
                return (
                <div>
                <Breadcrumbs />{/* You see it here, <Breadcrumbs /> not {Breadcrumbs} */}
                </div>
                );
                }
                });


                It creates new React element and now let's check your code:



                var Breadcrumbs = require('react-breadcrumbs');

                const Routes = () => (
                <BrowserRouter>
                <div>
                <Header />
                <MegaMenu />
                {Breadcrumbs}{/* <-------- Here is the issue */}
                <Route exact path='/' name='HomePage' component={HomePage}/>
                <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
                <Route path='/axios' name='Axios' component={Axios}/>
                <Route path='/brands' name='Brands' component={Brands}/>
                <Footer />
                </div>
                </BrowserRouter>
                );

                export default Routes;


                If you replace {Bredcrumbs} with <Breadcrumbs />, it should just work:



                var Breadcrumbs = require('react-breadcrumbs');

                const Routes = () => (
                <BrowserRouter>
                <div>
                <Header />
                <MegaMenu />
                <Breadcrumbs />
                <Route exact path='/' name='HomePage' component={HomePage}/>
                <Route path='/celebrity' name='Celebrities' component={Celebrities}/>
                <Route path='/axios' name='Axios' component={Axios}/>
                <Route path='/brands' name='Brands' component={Brands}/>
                <Footer />
                </div>
                </BrowserRouter>
                );

                export default Routes;


                You can read more about JSX in the official React documentation:
                https://reactjs.org/docs/introducing-jsx.html







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 19 at 11:54









                hinokhinok

                2,3691324




                2,3691324

























                    -1














                    I have used this library https://www.npmjs.com/package/react-breadcrumbs-dynamic][1] to implement the breadcrumbs.



                    Created one route.js and imported the library



                    import { Breadcrumb as BootstrapBreadcrumb } from 'react-bootstrap'
                    import { Breadcrumbs, BreadcrumbsItem } from 'react-breadcrumbs-dynamic';
                    import CrumbItem from '../components/common/breadcrumb/CrumbItem';


                    Created the breadcrumbs container like this in route.js:



                    const Routes = () => (
                    <BrowserRouter>
                    <div>
                    <div className="breadcrumbs-container">
                    <BreadcrumbsItem glyph='home' to={base_path}>
                    Home Page
                    </BreadcrumbsItem>
                    <Breadcrumbs
                    hideIfEmpty={{ active: true }}
                    item={CrumbItem}
                    container={BootstrapBreadcrumb}
                    finalProps={{ active: true }}
                    duplicateProps={{ to: 'href' }}
                    />
                    </div>
                    <Route exact path='/' component={HomePage} />
                    <Route path='/brands' component={Brands} />
                    <Footer />
                    </div>
                    </BrowserRouter>
                    );


                    Given breadcrumbs items in Another component brands.js



                    import { BreadcrumbsItem } from 'react-breadcrumbs-dynamic';
                    render() {
                    return (
                    <BreadcrumbsItem to={'/brands'}>
                    Brands
                    </BreadcrumbsItem>
                    )
                    }


                    Created link container separately



                    import { Breadcrumb } from 'react-bootstrap'
                    import { LinkContainer } from 'react-router-bootstrap'

                    const CrumbItem = ({to, ...props}) => (
                    <LinkContainer to={to}>
                    <Breadcrumb.Item {...props}>
                    </Breadcrumb.Item>
                    </LinkContainer>
                    )

                    export default CrumbItem


                    Note: Using bootstrap is optional






                    share|improve this answer





















                    • 1





                      @Zoe : Edited the post and demonstrated how I have implemented and solved my problem, I hope this is fine now.

                      – H.Husain
                      Jan 20 at 9:36
















                    -1














                    I have used this library https://www.npmjs.com/package/react-breadcrumbs-dynamic][1] to implement the breadcrumbs.



                    Created one route.js and imported the library



                    import { Breadcrumb as BootstrapBreadcrumb } from 'react-bootstrap'
                    import { Breadcrumbs, BreadcrumbsItem } from 'react-breadcrumbs-dynamic';
                    import CrumbItem from '../components/common/breadcrumb/CrumbItem';


                    Created the breadcrumbs container like this in route.js:



                    const Routes = () => (
                    <BrowserRouter>
                    <div>
                    <div className="breadcrumbs-container">
                    <BreadcrumbsItem glyph='home' to={base_path}>
                    Home Page
                    </BreadcrumbsItem>
                    <Breadcrumbs
                    hideIfEmpty={{ active: true }}
                    item={CrumbItem}
                    container={BootstrapBreadcrumb}
                    finalProps={{ active: true }}
                    duplicateProps={{ to: 'href' }}
                    />
                    </div>
                    <Route exact path='/' component={HomePage} />
                    <Route path='/brands' component={Brands} />
                    <Footer />
                    </div>
                    </BrowserRouter>
                    );


                    Given breadcrumbs items in Another component brands.js



                    import { BreadcrumbsItem } from 'react-breadcrumbs-dynamic';
                    render() {
                    return (
                    <BreadcrumbsItem to={'/brands'}>
                    Brands
                    </BreadcrumbsItem>
                    )
                    }


                    Created link container separately



                    import { Breadcrumb } from 'react-bootstrap'
                    import { LinkContainer } from 'react-router-bootstrap'

                    const CrumbItem = ({to, ...props}) => (
                    <LinkContainer to={to}>
                    <Breadcrumb.Item {...props}>
                    </Breadcrumb.Item>
                    </LinkContainer>
                    )

                    export default CrumbItem


                    Note: Using bootstrap is optional






                    share|improve this answer





















                    • 1





                      @Zoe : Edited the post and demonstrated how I have implemented and solved my problem, I hope this is fine now.

                      – H.Husain
                      Jan 20 at 9:36














                    -1












                    -1








                    -1







                    I have used this library https://www.npmjs.com/package/react-breadcrumbs-dynamic][1] to implement the breadcrumbs.



                    Created one route.js and imported the library



                    import { Breadcrumb as BootstrapBreadcrumb } from 'react-bootstrap'
                    import { Breadcrumbs, BreadcrumbsItem } from 'react-breadcrumbs-dynamic';
                    import CrumbItem from '../components/common/breadcrumb/CrumbItem';


                    Created the breadcrumbs container like this in route.js:



                    const Routes = () => (
                    <BrowserRouter>
                    <div>
                    <div className="breadcrumbs-container">
                    <BreadcrumbsItem glyph='home' to={base_path}>
                    Home Page
                    </BreadcrumbsItem>
                    <Breadcrumbs
                    hideIfEmpty={{ active: true }}
                    item={CrumbItem}
                    container={BootstrapBreadcrumb}
                    finalProps={{ active: true }}
                    duplicateProps={{ to: 'href' }}
                    />
                    </div>
                    <Route exact path='/' component={HomePage} />
                    <Route path='/brands' component={Brands} />
                    <Footer />
                    </div>
                    </BrowserRouter>
                    );


                    Given breadcrumbs items in Another component brands.js



                    import { BreadcrumbsItem } from 'react-breadcrumbs-dynamic';
                    render() {
                    return (
                    <BreadcrumbsItem to={'/brands'}>
                    Brands
                    </BreadcrumbsItem>
                    )
                    }


                    Created link container separately



                    import { Breadcrumb } from 'react-bootstrap'
                    import { LinkContainer } from 'react-router-bootstrap'

                    const CrumbItem = ({to, ...props}) => (
                    <LinkContainer to={to}>
                    <Breadcrumb.Item {...props}>
                    </Breadcrumb.Item>
                    </LinkContainer>
                    )

                    export default CrumbItem


                    Note: Using bootstrap is optional






                    share|improve this answer















                    I have used this library https://www.npmjs.com/package/react-breadcrumbs-dynamic][1] to implement the breadcrumbs.



                    Created one route.js and imported the library



                    import { Breadcrumb as BootstrapBreadcrumb } from 'react-bootstrap'
                    import { Breadcrumbs, BreadcrumbsItem } from 'react-breadcrumbs-dynamic';
                    import CrumbItem from '../components/common/breadcrumb/CrumbItem';


                    Created the breadcrumbs container like this in route.js:



                    const Routes = () => (
                    <BrowserRouter>
                    <div>
                    <div className="breadcrumbs-container">
                    <BreadcrumbsItem glyph='home' to={base_path}>
                    Home Page
                    </BreadcrumbsItem>
                    <Breadcrumbs
                    hideIfEmpty={{ active: true }}
                    item={CrumbItem}
                    container={BootstrapBreadcrumb}
                    finalProps={{ active: true }}
                    duplicateProps={{ to: 'href' }}
                    />
                    </div>
                    <Route exact path='/' component={HomePage} />
                    <Route path='/brands' component={Brands} />
                    <Footer />
                    </div>
                    </BrowserRouter>
                    );


                    Given breadcrumbs items in Another component brands.js



                    import { BreadcrumbsItem } from 'react-breadcrumbs-dynamic';
                    render() {
                    return (
                    <BreadcrumbsItem to={'/brands'}>
                    Brands
                    </BreadcrumbsItem>
                    )
                    }


                    Created link container separately



                    import { Breadcrumb } from 'react-bootstrap'
                    import { LinkContainer } from 'react-router-bootstrap'

                    const CrumbItem = ({to, ...props}) => (
                    <LinkContainer to={to}>
                    <Breadcrumb.Item {...props}>
                    </Breadcrumb.Item>
                    </LinkContainer>
                    )

                    export default CrumbItem


                    Note: Using bootstrap is optional







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jan 20 at 9:32

























                    answered Jan 19 at 11:28









                    H.HusainH.Husain

                    549




                    549








                    • 1





                      @Zoe : Edited the post and demonstrated how I have implemented and solved my problem, I hope this is fine now.

                      – H.Husain
                      Jan 20 at 9:36














                    • 1





                      @Zoe : Edited the post and demonstrated how I have implemented and solved my problem, I hope this is fine now.

                      – H.Husain
                      Jan 20 at 9:36








                    1




                    1





                    @Zoe : Edited the post and demonstrated how I have implemented and solved my problem, I hope this is fine now.

                    – H.Husain
                    Jan 20 at 9:36





                    @Zoe : Edited the post and demonstrated how I have implemented and solved my problem, I hope this is fine now.

                    – H.Husain
                    Jan 20 at 9:36


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54199301%2freact-breadcrumbs-throwing-error-when-using-with-router%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Callistus III

                    Plistias Cous

                    Index Sanctorum