Answer the question
In order to leave comments, you need to log in
How to solve problems in a recursive component without violating SOLID principles?
1. The component has 2 "modes" of display
How to do it through slots? (The slot must have category props, please note that this is a recursive component)
2. Data can be different on different pages, for example, on page 1:
{
name: "test",
items: [{name: "test"}, ...]
}
{
title: "test",
items: [{title: "test"}, ...]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question