0
What is the error
2 Answers
0
Sarthak Chowdhry Your code not working on Code Playground, not because of export default.
Do not set export default on single file react or code playground.
You also have error on using props variable, it should be {props.var}, not {var}.
You can only use {var} if you have destructured the variables from function argument, eg. function Tweet2({name, tweet, time}) ..
Check out the working version here.
https://code.sololearn.com/WaG1OTN0xqDR/?ref=app
+ 2
*you have a typo in : export defult (default)