React TypeScript: Efficient API Usage