r/reactjs • u/swyx • Jun 03 '18
Beginner's Thread / Easy Question (June 2018)
Hello! just helping out /u/acemarke to post a beginner's thread for June! we had over 270 comments in last month's thread! If you didn't get a response there, please ask again here! You are guaranteed a response here!
Soo... 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.
The Reactiflux chat channels on Discord are another great place to ask for help as well.
Pre-empting the most common question: how to get started learning react?
You might want to look through /u/acemarke's suggested resources for learning React and his React/Redux links list. Also check out http://kcd.im/beginner-react.
View all comments
Show parent comment
1
u/Rikardny Jun 27 '18
I found a mechanism in the applet that allows me to set a callback function once its contents are changed, however because I have the applet data folder within my public/ and not src/ I seemingly can't run functions from my components. What I did instead was write a function in the script tag of my index.html, which updates an html-object on my page as soon as the applets content changes. I figured this could then be read by React through "onChange" which could then update the rest of my components. I feel like this is just a hack though, is there are more efficient way around it that I'm not thinking of?