Functions work. Also, react code is pretty