chentsulin/sweetalert-react

Sweetalert displays 'Not valid!'

dotbear opened this issue · 3 comments

<SweetAlert
  show={this.state.show}
  title="Demo"
  text="SweetAlert in React"
  onConfirm={() => this.setState({ show: false })}
/>

Displays

image

Tried and tested with all the different examples found in /examples.
Same result across the board.

Doing npm install sweetalert-react

I have the same problem - how did you fix it?

The css file is missing, importing it should fix the issue @adamtay82

@adamtay82 just include this SCSS file sweetalert.scss in your code.