Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am having a hard time finding a good yet simple article on the 'behind the scenes' of jQuery. I know this is not simple though.
But does jQuery actually uses cycles and states like React does ? If not, what is it, in simple words ?
What is happening when jQuery does that ?
$('.netreviews_stats_stars_big').css('opacity', '0.2');
The DOM manipulation parts of jQuery do direct DOM manipulation. It doesn't take a data-driven approach like React so the idea of state in the React sense is meaningless.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I wonder if writing react components as HTML first can be a good idea to plan the project or it is actually a bad idea and time consuming??
Though, this is primarily opinion based question, the react documentation simply states to follow these rules:
Start With A Mock
Break The UI Into A Component Hierarchy
Build A Static Version in React
Identify The Minimal (but complete) Representation Of UI State
Identify Where Your State Should Live
Add Inverse Data Flow
See Thinking in React for more info.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
Hello guys I would like to use reactJS but it's not clear for me why do I have to use it, I already use Jquery and it works fine for me, I can use Java script and manipulate all the DOM the issue here is why? Why should i use it and what kind of things I can do with reactJS that I could not make with Jquery.
I hope you can give a hand or simple examples because I'm very confused thank you.
One of the biggest advantages is the component system for writing code. You can build all your html in blocks and then just import those blocks where you need them. You can also modify how those blocks are loaded using the component lifecycle for added control and optimisation.
These methods really help structure how you perceive information flow throughout your site.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
Please ignore my syntax.
This is just an example if this is a bad idea.
let's say I have select with 50 options but instead of typing out options 50 times.
would it be a good idea to use js and give it an array variable.
run through the variable.length then append it into html.
Is it bad to use js like this though and why?
No issues. Now clients are way too much powerful than they were earlier before.
So, utilizing some of its power never harms.
Now the problem .. rendering template on client is not an issue ..Angular, React all does the same.
While you are doing only a little which may consumes less than < 1 ms. So , just go ahead.
it is a better practice.
You are a programmer, you will never need to type out options 50 times :)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm still starting to create a Cordova plugin, I've read their documentation and an article on how to create one.
I found it simple and easy to create however, aside from creating I would like to know if what are the best practices and/or useful tools to be used for debugging and testing the plugin. Also what would the best OOP Javascript pattern to implement?
Thanks!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have an ExtJS Sencha application that seems to have a client-side memory leak.
The only thing I don't know is how to take care of the stores. I've put autoDestroy: true on both of the stores I use - but I still get the leak.
Any suggestions?
Thanks in advance.
I think your stores are derived then you need to call base class clean up from your derived onDestroy()function otherwise it may get by-passed.Please refer extjs guidelines for memory leaks.