Being new in react I am trying to add a function in script, however its giving error } unexpected
} unexpected
How can I add function in react
import R