Implement a Log Stream Counter in React

Asked at Elastic · Coding Questions · Difficulty: Easy

Implement a feature in React to read a log stream and count the frequency and last update time of each category. Write a React component that takes log stream data as input, which is an array where each element contains `category` and `timestamp` fields. You need to return an object which includes the frequency and last update time of each category. Provide detailed instructions and sample data.

Loading the problem…