                        }];
                                        }

                                        return filtered.map(todo => ({
                                            div: {
                                                key: todo.id,
                                                className: `todo-item ${todo.completed ? 'completed' : ''}`,
                                                children: [
                                                    {
                                  