react multiple slots
Jason Frost
Jason Frost. 3.805 lượt thích. Life is 10% of what happens to me and 90% of how I react to it.
[So sánh] Tương đồng giữa React và Vue.js
props.children có thể là bất cứ thứ gì mà React có thể render: một ... (slots) trong component cha để nhận nội dung từ bên ngoài. Ví dụ ...
Components và Props trong ReactJS - Viblo
Đây là 1 component có tên là App, nó sẽ trả về 1 React element là ListExpenses, đây cũng là 1 component được gọi từ component App.