menu

React

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

Channels
Team
Posts
Members
Info

Fully static no-JS pages

Hi everyone, I was wondering whether it is possible to use React for pre-building fully static pages that do not even need JS bundles, so that I can simply serve them from a server? I guess ReactDOMServer.renderToStaticMarkup is what I need but I'm not sure whether it still…

thumbsup
0
message-simple
2

Is there a way not to re-render some part of a React state?

I have messages as state. This state can hold thousands of messages object. When new message comes in, a new message object will be merged to messages array of object. Thus, from what I understand, React will re-render everything to show updated messages view. Proven by graph on…

thumbsup
0
message-simple
3

Scheduler Questions

I have an application that is in a unique environment. I essentially want to run a react application in the background page of a Chrome Extension. I have polyfilled requestAnimationFrame since the native one next would never progress in a background page ( They have no need for…

thumbsup
0
message-simple
1

Loading localStorage and then setState

Hi guys, I'm building this Rock Paper Scissors app for practicing hooks and using routers and I want to add a score. It seems that the localStorage I have setup doesn't seem to setState in time for the scores to be updated. Do you know why?

thumbsup
0
message-simple
2

Fixing act() warnings in tests

So I'm upgrading our codebase right now to React 16.9.0, and we have a lot of act() warnings to fix. We use React Testing Library 8.0.9, which wraps most of the test helpers like fireEvent() and render() in act() by default. A few of these warnings make a lot of sense to me. For…

thumbsup
0
message-simple
0

React lifecycle warnings

Hi there! I updated my React version and now I get tons of lifecycle warnings in the console. The lifecycle functions that are mentioned like componentWillUpdate are not used by me anywhere in the code. Since it mentions the components in connect(), I'm thinking maybe it comes…

thumbsup
0
message-simple
7

React Multi tenant

Hi, I'm new to ReactJS and currently working on a project. For that I'm looking for React Multi tenant Application Code.How do Implement Multi tenant in React?

thumbsup
1
message-simple
1

Changing website language in react

I am trying to change my webapp content to different multiple languages using react js Any suggestion or reference link will be useful

thumbsup
0
message-simple
1

window is not defined - react-scripts 3.1.1

Describe the bug Uncaught ReferenceError: window is not defined Environment …

thumbsup
0
message-simple
2

How can i use head included script inside componentDidMount() and function?

How can i use head included script inside componentDidMount() and function?

thumbsup
0
message-simple
1