menu

React

A community of developers, designers and others who love React.js. ⚛️

Channels
Team
Posts
Members
Info

Static Providers ?

hey guys, I'm currently working on a legacy app made on Rails and we're now implementing React. Due to the current architecture, I am using a SignIn Provider across multiple react components. The thing is that when the contexts updates only the consumer of specific provider is…

thumbsup
0
message-simple
0

componentwillunmount

If you duplicate a Chrome tab, componentwillunmount will be called in the event of a new tab. Also, somehow the value of the sessionstorage is shared there. What is this strange phenomenon? please help me.

thumbsup
0
message-simple
2

Load React Component on the basis of JSON.

Hi, I have react application in which I have below JSON object in index.html. Now, I have created 3 separate React components say comp1 , comp2 & comp3. comp1 is reading data from component1 JSON, comp2 is reading data from component2 JSON. …

thumbsup
0
message-simple
12

How to get the ref value in Higher order component ?

Hi All , i am having a component where i am passing the ref value. I need to get the passed ref value in Higher Order component. Here is the code example: Component wrapped with HOC: …

thumbsup
0
message-simple
1

Multiple API calls

Hello guys? So, I have 4 or more URLs to make API calls to. let's say 1. www.cryptonews.com/api/news …

thumbsup
1
message-simple
14

Looking for React image component package that I can't remember (Answered in…

It had a very polished looking demo site showing several different animated image loading transitions. I'm fairly certain it's not react-ideal-image (nor is it the alternatives listed in that library's readme). It's possible I could be misremembering when it's actually part of…

thumbsup
0
message-simple
2

There is a way to documentation in React-native project with Docz?

thumbsup
0
message-simple
1

Cache and deployments

Hey there, I have a create-react-app that I host on Heroku. The app is served through my Express app. I have some issues with caching on deployments. After deploying to Heroku, new changes are not visible at all. If I go into a private browser, they will work without a problem.…

thumbsup
0
message-simple
14

Return null, undefined or <></>

Hey guys, Whey we have a component with conditional rendering where it renders or then nothing, what is the better or more standard way to return this case? I'm using <></> because then the typescript checking handles it without anything else. But is this the best way or it's…

thumbsup
0
message-simple
2

Deploy Express and React with Docker

How best can one Deploy an Express Js API Backend and Standalone React app with docker on the same domain? Let's say, the react app on port 3000 and express backend on port 5000. Both apps with the same Dockerfiles but share a similar docker-compose file for development and…

thumbsup
0
message-simple
0