menu

React

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

Channels
Team
Posts
Members
Info

check prevState before using prevState?

I'm using an iterator to pull all of the images I have from a gallery into state so that they can be edited, added, removed, rearranged, etc... For now it's grabbing all images, and adding them to a file structure. Handle Add Files, works, but if there's only one image, it…

thumbsup
0
message-simple
3

Code Review

Today I had just created a simple movie app using React, Redux, Redux-thunk , Typescript using container patter. I am requesting to all could you review my code. Here is a github link https://github.com/devbinod/movie-app.git

thumbsup
0
message-simple
6

[Code Review] I just completed my minimalist music app

Hi guys! I just completed my minimalist music app The code: https://github.com/thecatcampaign/SaoCLao If somebody could have a quick look at the repo and tell me how bad/good is my code it would be greatly appreciated. Thank you :) !

thumbsup
3
message-simple
5

Blender project on React

I've just create my first blender project (3D model or stuff) and I want to display it on React. How can I display my blender project on my React App?

thumbsup
0
message-simple
2

Canvas Image Implementation In React Application.

I have got an requirement where i need to develop the canvas image in my website. which should be change dynamically (like color and appearance) based on the user action. I am very new in the canvas implementation, can anyone suggest the best way to fulfill this requirement in…

thumbsup
0
message-simple
4

How to update nested state properties in React [ Form state ]

https://github.com/elhaw/products-app App structure -- Products …

thumbsup
1
message-simple
1

Need help with google maps

my map is loading and working fine .Now I need that when i drag the map the marker should be fixed in the middle and get the position of the markers on drag stop. Similar to the way uber / ola/ zomatp map works Thanks in advance

thumbsup
0
message-simple
14

Extending functional components - possible?

I'm looking to rewrite my class component into a functional component. Currently I have something like this: Is it possible to rewrite this into a functional component const Component = props => { ... }?

thumbsup
0
message-simple
1

How do I get an element's position?

I tried to use refs by following (this guide)[https://reactjs.org/docs/refs-and-the-dom.html#creating-refs]. When i try to run myRef.current.getBoundingClientRect() I get this error: TypeError: myRef.current.getBoundingClientRect is not a function. I've used this method before…

thumbsup
1
message-simple
12

First time contributor: React prod tests failing

Hi, I'm preparing to submit my first pull request to React but when I try to run yarn test-prod a few of the tests are failing even without my changes. Any idea how I fix this? https://gyazo.com/785fa51832ee60dbca62910e8660ba42

thumbsup
0
message-simple
0