I want to render an alert message by calling a function, basically how vanilla javascript alert() function works.
This is my code:
import React, { useState