Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react js alert popup example

import React from 'react'
import { withAlert } from 'react-alert'

const App = ({ alert }) => (
  <button
    onClick={() => {
      alert.show('Oh look, an alert!')
    }}
  >
    Show Alert
  </button>
)

export default withAlert()(App)
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #react #js #alert #popup
ADD COMMENT
Topic
Name
3+6 =