couds / react-bulma-components

React components for Bulma framework
MIT License
1.2k stars 129 forks source link

[HELP] Unable to use ButtonGroup #396

Closed dmitrym0 closed 2 years ago

dmitrym0 commented 2 years ago

Howdy folks,

I have the following piece of code, very similar to the reference:

          <ButtonGroup>
          <Button color="primery" renderAs={Link} to="/">Today</Button>
          <Button color="primery" renderAs={Link} to="/">Previous</Button>
          <Button color="primery" renderAs={Link} to="/">Next</Button>
          </ButtonGroup>

This results in the following error during building:

react-jsx-dev-runtime.development.js:87 Warning: React.jsx: type is invalid 
-- expected a string (for built-in components) or a class/function (for composite components) 
but got: undefined. You likely forgot to export your component from the file it's defined in, 
or you might have mixed up default and named imports.

If I remove ButtonGroup everything is copacetic, so the button (and other) components work fine; it's just the ButtonGroup.

I would appreciate a tip on how to resolve this.

dmitrym0 commented 2 years ago

It appears to be the same as #20.

ButtonGroup should be Button.Group.