Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| <AiFillHeart className="w-5 h-5 absolute ml-3 pointer-events-none" /> | ||
| ); | ||
| } | ||
| else if(array[1] === "js" || array[1] === "javascript"){ |
There was a problem hiding this comment.
need to understand why did u remove this and add that , is it for alignment ?
There was a problem hiding this comment.
I haven't removed that, check clearly I've just added === instead of ==
| const { tabCount } = props; | ||
| const {clickblob,changestateblob} = props; | ||
| const {textingchan,settextingchan} = props; | ||
| let ouputext = ''; |
| }); | ||
|
|
||
| let counter = 0; | ||
| const [compo, setCompo] = useState(<CodeMirror options={{mode:'javascript', lineNumbers:true}} value="console.log('hello world')" |
There was a problem hiding this comment.
I added this to state so I can loop through the multiple instances of it. So if the user clicks on the plus symbol another instance of codemirror will be created and we can have a counter managing each instance.
There was a problem hiding this comment.
for that you have to manage that as an array
| })}; */} | ||
|
|
||
| {/* TO ITER THROUGH THE ARRAY AND BE ABLE TO FETCH TEH OBJECT */} | ||
| {arrary.map((value) => { |
There was a problem hiding this comment.
how will u loop over the array of instance , without this ?
There was a problem hiding this comment.
You are not managing it as array properly, That's why i commented that to work theme part
There was a problem hiding this comment.
Please connect to me via discord killerthief#4626
No description provided.