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 1 year ago.
Improve this question
I am developing a website using React and I have almost 40 SVG, so which way is better to use them
1-<img src="./name.svg"/>
2- create component for every one and import them
thank you`
Create a new component for each one and import them. That way you can reuse them in other parts of your app as a react component and not an img tag. But in essense, it doesnt really matter
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 6 months ago.
Improve this question
Is there a number for it? Has anyone experienced concurrency issues?
Thanks in advance.
you cant create hooks in class based comp , only in functional components.
Also there's no such issue as how many hooks to be created in functions. it depends on your code how much re rendering is those causing if youre using useState
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 3 years ago.
Improve this question
I see lot of articles stating that Proptypes in React components are useful for validation. But are there any use cases, where we should not use Proptypes? Or should we always use them?
PropTypes are suggested by React developers and mentioned in the official documentation page as well. I don't think there is any case where we shouldn't use PropTypes as it improves the code quality.
Though if you are using TypeScript in React, then prop-types doesn't make any sense to be used.
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 3 years ago.
Improve this question
Is it a good practice to put App.js, App.css and App.test.js in to a folder called app and put the app folder inside src/components folder?
It depends on an individual. According to me, things are good as it comes when creating react app :)
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
I've recently started learning React and don't know enough to make a judgement on whether it would be a good library to use for a chat web app?
HipChat is built with React: https://developer.atlassian.com/blog/2015/02/rebuilding-hipchat-with-react/
I believe it also uses Material-UI since some of the components are near identical (buttons, icon/label placement, etc.)
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 9 years ago.
Improve this question
I'm new to Angularjs. Now I'm going to create a groupon like website. So I checked lots of similar websites. None of them using the one-page style. So I'm thinking when to use Angularjs. Is that a good idea to create a groupon like website using Angularjs?
Heck yea it is. The only thing is to keep the initial page load fast. So you might need to dynamically import your js files using something like: http://requirejs.org/