Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react disabled attribute

function App() {

  function button1Click() {
    console.log('1click')
  }  

  function button2Click() {
    console.log('2click')
  }  

  return (

    <div>
      
    <button disabled={true}>
        Disabled Button
      </button>

      <button>
        Enabled Button
      </button>

    </div>
    
  )

}

export default App;
Source by upmostly.com #
 
PREVIOUS NEXT
Tagged: #react #disabled #attribute
ADD COMMENT
Topic
Name
7+7 =