React Archives : Binary Bits https://blog.binarybits.net/tag/react/ Bits & Pieces - A blog by Kannan Balasubramanian Sun, 26 Apr 2020 09:45:41 +0000 en-GB hourly 1 https://wordpress.org/?v=6.5.3 React – Call function from HTML Tag with parameter https://blog.binarybits.net/call-react-function-from-html-with-parameter/ https://blog.binarybits.net/call-react-function-from-html-with-parameter/#respond Sun, 26 Apr 2020 08:26:06 +0000 https://blog.binarybits.net/?p=1236 Sometimes we need to call a React function from HTML tags with parameters or arguments and following is the ES6 based way. Here a button is calling a function updateName with argument newName to set a state which in turns changes the name being displayed. Do note that using this.updateName.bind() is the recommended way due […]

The post React – Call function from HTML Tag with parameter appeared first on Binary Bits.

]]>