How to add a Components instead of the Html code ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

How to add a Components instead of the Html code ?

Here is the code : https://code.sololearn.com/W4CKjK1g7l2u/?ref=app I want to add a Component in which the user play with props and states ... I have done it locally on phone on ACode editor but cant add it on sololearn .... I want to add three components Todo App -> todoListCon -> todo Items

30th Nov 2020, 3:37 PM
Coder
Coder - avatar
4 Answers
+ 2
this is how i usually did in sololearn, not exactly 3 components hierarchy but you get the idea https://code.sololearn.com/WLCLQfA91v41/?ref=app
30th Nov 2020, 4:31 PM
Rei
Rei - avatar
+ 3
Rei thanks for your answer. I need three components bro Read the last line bro
1st Dec 2020, 3:50 AM
Coder
Coder - avatar
+ 2
its practically same code, i updated the code
1st Dec 2020, 5:13 AM
Rei
Rei - avatar
+ 2
Have you look at this vue js docs? I search i found you need to add this for adding components Vue.component(name,{ template:"<p>hello </p>", props:[Props] })
2nd Dec 2020, 7:21 AM
Jiya
Jiya - avatar