react functional typescript code example Example: typescript cheatsheet enum Color {Red, Green, Blue = 4} let c: Color = Color.Green