Skip to content

Conversation

@Joker-Bat
Copy link

No description provided.

@vercel
Copy link

vercel bot commented Oct 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
codevim ✅ Ready (Inspect) Visit Preview Oct 23, 2022 at 2:48PM (UTC)

<AiFillHeart className="w-5 h-5 absolute ml-3 pointer-events-none" />
);
}
else if(array[1] === "js" || array[1] === "javascript"){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to understand why did u remove this and add that , is it for alignment ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 = '';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sorting this.

});

let counter = 0;
const [compo, setCompo] = useState(<CodeMirror options={{mode:'javascript', lineNumbers:true}} value="console.log('hello world')"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how will u loop over the array of instance , without this ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are not managing it as array properly, That's why i commented that to work theme part

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please connect to me via discord killerthief#4626

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants