Javascript Passing A Variable In React But It Is Showing Error

Javascript Passing A Variable In React But It Is Showing Error