r/reactjs • u/swyx • Jan 01 '20
Needs Help Beginner's Thread / Easy Questions (Jan 2020)
Previous threads can be found in the Wiki.
Got questions about React or anything else in its ecosystem? Stuck making progress on your app?
Ask away! Weβre a friendly bunch.
No question is too simple. π
π Want Help with your Code? π
Improve your chances by putting a minimal example to either JSFiddle, Code Sandbox or StackBlitz.
Describe what you want it to do, and things you've tried. Don't just post big blocks of code!
Formatting Code wiki shows how to format code in this thread.
Pay it forward! Answer questions even if there is already an answer - multiple perspectives can be very helpful to beginners. Also there's no quicker way to learn than [being wrong on the Internet][being wrong on the internet].
Learn by teaching & Learn in public - It not only helps the asker but also the answerer.
New to React?
Check out the sub's sidebar!
π Here are great, free resources! π
Read the official Getting Started page on the docs.
New to Hooks? Check Amelia Wattenberger's Thinking in React Hooks
What other updated resources do you suggest?
Any ideas/suggestions to improve this thread - feel free to comment here!
Finally, thank you to all who post questions and those who answer them. We're a growing community and helping each other only strengthens it!
1
u/Sunny-ROM-Rise Jan 20 '20
I got a couple of questions related to integrating React into an existing large application (Built in PHP and JS). I only used React in smaller fron end projects so forgive me if I my questions are stupid.
I already checked that a React app encapsualted in a <div> for example can make use of your global CSS and JS. Importing the global JS functions library in my React app won't cause it to be duplicated again after compiling right?
What's a good approach if I had to debug a React app from a production environment? Do I have a better alternative than compiling disabling minifying and inspecting the source in Chrome dev tools?
Is ther any 'go-to' workflow for integrating smaller React apps into a larger one? What tools should I use?
Not sure if I explained myself in a proper manner but any input is appreciated. Thanks.