diff --git a/README.md b/README.md index d99825a..d7cbf97 100644 --- a/README.md +++ b/README.md @@ -146,3 +146,5 @@ Lifecycle hooks : { [beforeCreated], [created], [beforeMount], [mounted], [conditionals]: https://v3.vuejs.org/guide/conditional.html [v-if]: https://v3.vuejs.org/guide/conditional.html#v-if [v-for]: https://v3.vuejs.org/guide/list.html#mapping-an-array-to-elements-with-v-for + +4. Refactoring behaind the sences: new component TwootItem diff --git a/src/components/TwootItem.vue b/src/components/TwootItem.vue new file mode 100644 index 0000000..6c7531e --- /dev/null +++ b/src/components/TwootItem.vue @@ -0,0 +1,46 @@ + + + + + \ No newline at end of file diff --git a/src/components/UserProfile.vue b/src/components/UserProfile.vue index ef04769..3d07d26 100644 --- a/src/components/UserProfile.vue +++ b/src/components/UserProfile.vue @@ -8,20 +8,21 @@
-
- {{ twoot.content }} -
+ :username="user.username" + :twoot="twoot" + />