+ 1

Can someone suggest codespace to run my code (react.js)?

import { useState, useEffect } from 'react'; import { Input } from '@/components/ui/input'; import { Button } from '@/components/ui/button'; import { Card, CardContent } from '@/components/ui/card'; import { motion } from 'framer-motion'; import { Search, Atom, Rocket, BrainCircuit, MessageSquare, Sparkles } from 'lucide-react'; export default function PhysicsApp() { const [searchQuery, setSearchQuery] = useState(''); const [chatbotMessage, setChatbotMessage] = useState('Hello! Ask me anything about physics.'); const [userInput, setUserInput] = useState(''); const [isTyping, setIsTyping] = useState(false); const topics = [ { title: 'Quantum Mechanics', description: 'Explore the mysteries of quantum physics.', icon: <Atom /> }, { title: 'Relativity', description: 'Learn Einstein’s theory of relativity.', icon: <Rocket /> }, { title: 'Classical Mechanics', description: 'Fundamentals of motion and forces.', icon: <Rocket /> }, { title: 'AI in Physics', description: 'D

17th Feb 2025, 1:30 PM
Sakshi Sharma
Sakshi Sharma - avatar
17 Réponses
+ 2
That code should be part of a hole React Project, so you have to create a React Project. You can do that on a pc if you have Node installed, and if you want to have it published, you can deploy the project to Vercel.
17th Feb 2025, 2:58 PM
Jan
Jan - avatar
+ 2
No, because I rarely use YouTube in programming. I get so tired of the authors scrolling up and down in those videos. It doesn't works for me with YouTube videos, so there is nothing programming related I can recommand from YouTube, but there are probably users here on SL that can recommend something.
17th Feb 2025, 5:32 PM
Jan
Jan - avatar
+ 2
Try a guy called Bro code
18th Feb 2025, 9:34 AM
Caleb Mwangi
Caleb Mwangi - avatar
+ 2
To run the react code install node in pc and then in vs code terminal type "npx create-react-app myapp" then it will automatically install the environment with name myapp, then you are good to go, but the way you asked where to run the code I assume that you are still a beginner and if so I suggest you to first understand what is react if you are already expert in js, otherwise it's better to first get a good knowledge of js 😊
18th Feb 2025, 10:59 AM
Dipankar Debnath
+ 1
What's Vercel?
17th Feb 2025, 3:00 PM
Sakshi Sharma
Sakshi Sharma - avatar
+ 1
Thanks for sharing your understanding. Yeah, I have installed Node in my PC but I'm unable to setup the environment. Can you help me with that?
17th Feb 2025, 3:01 PM
Sakshi Sharma
Sakshi Sharma - avatar
+ 1
You can follow a C Course here on SL. Nobody here is supposed to be teachers. It's a self-learning platform with different kind of courses in programming.
17th Feb 2025, 3:20 PM
Jan
Jan - avatar
+ 1
I have completed C introduction part here on sololearn and now my c intermediate course is in progress..... But I think it's not just enough to master each and everything in C. Since more you dive deeper in any programming language more you get to know.. But I wanna simply learn C programming till intermediate level for now with better understanding. That's why I was asking for guidance:
17th Feb 2025, 3:47 PM
Sakshi Sharma
Sakshi Sharma - avatar
+ 1
It also depends on what you expect to use C for in the future.
17th Feb 2025, 3:58 PM
Jan
Jan - avatar
+ 1
For now, I'm just learning for my exams.
17th Feb 2025, 4:00 PM
Sakshi Sharma
Sakshi Sharma - avatar
+ 1
If you are learning for your exams, then you must have a teacher that has provided you with learning material in C.
17th Feb 2025, 4:15 PM
Jan
Jan - avatar
+ 1
I ended up getting my C programming teacher quite late, which has left the syllabus incomplete and me feeling stuck.
17th Feb 2025, 4:35 PM
Sakshi Sharma
Sakshi Sharma - avatar
+ 1
You can go to Google and search for "THE C PROGRAMMING LANGUAGE by Brian W. Kernighan and Dennis M. Ritchie.
17th Feb 2025, 4:50 PM
Jan
Jan - avatar
+ 1
Thanks for your worthy guidance. Can you suggest some YouTube tutorials too?
17th Feb 2025, 4:52 PM
Sakshi Sharma
Sakshi Sharma - avatar
0
improt{
18th Feb 2025, 8:53 PM
عبدالله الاهدل
عبدالله الاهدل - avatar
0
Actually, my VS code terminal is showing some awkward statements on typing "npx create-react-app myapp". It's saying sth like " disabled in your system " . Yeah you are right I'm new to React js, previously I was using on an online editor for practice but now I don't know why my codes aren't working in the way they supposed to work there that's why I want to change my platform.
19th Feb 2025, 10:06 AM
Sakshi Sharma
Sakshi Sharma - avatar
0
Sakshi Sharma search for the solution on Google or YouTube or chatgpt and we are living in the AI era, so better ask AI for small doubt and even after that if you have doubts you can definitely ask but I usually use AI for such problems as it saves my time
20th Feb 2025, 1:40 PM
Dipankar Debnath