Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
i would like to know, if i must use 'connect' in children component or i must traced back my function in Parent component which is already 'connect'
What the best practice?
Fred
Per the Redux FAQ entry on connecting multiple components, you should feel free to connect components anywhere it makes sense for your own application.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm trying to add translations to my next js app, but I have a problem. I get a very heavy translation object from server with 30000 keys to all my app. When I'm passing object through pages props it makes js bundle file bigger because unused translation keys are added too. How can I optimize it?
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 4 years ago.
Improve this question
I am working on reactJS, Currently I have Image in one component and I want to send this image to another. Could you please help me how I can send this image to another component. If you give me example it would be better
Thanks
If this image needs to be accesible from different components, consider making it part of either a global configuration (if it's a fixed value), put in on the context, save it to localStorage, or save it in the store so it can be accessed from anywhere in the 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 4 years ago.
Improve this question
I am building a Table component that has filters on it and therefore there is a lot of logic involved and also I am using material ui which uses a lot of lines. However I am finding the component to be too extense. Is having a component with this size ok?
This is mostly a matter of personal choice.
In my opinion, I would say no. I try to keep my components as small as possible.
Try breaking down your component into smaller components that you find are re-used lots.
Otherwise, if your component is well-documented, I would say 500 lines is okay.
It mostly depends on what the component is and the complexity of it.
It's totally up to you though!
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 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 9 years ago.
Improve this question
I am using Firebase.js for realtime chat synch and I wonder if it's possible to make a game like typeracer.com with Firebase, that detects moves and displays in real time. If Firebase can not do it, please tell me how I can build it with other technologies. thank you.
It's definitely possible. Check out the Tetris example if you haven't already!