Reddit » ReactJS
1 FOLLOWERS
Reddit » ReactJS
3h ago
I tried forcing myself to adopt the functional component paradigm but I am kind of stuck and I love how clean and clutter free it makes my codebase look. Definitely going to work on more projects with functional components. Anyone else with the same symptoms?
submitted by /u/sidharth0169
[visit reddit] [comments ..read more
Reddit » ReactJS
3h ago
I'm working on a large, complex chat application. We have a `ChatroomPage` that is filled with a ton of stuff, where most components rely on a lot of the same data. We're using Apollo Client with some codegen which gives us a custom hook: `useChatroomQuery`.
Given that a lot of these components rely on the same data, what is the suggested way of sharing this data such that:
Prop drilling is minimized
We can avoid a bunch of loading spinners
It's easy for developers to "do the right thing by default"
From most of what I've read online, many people suggest just reusing the same query, or, mak ..read more
Reddit » ReactJS
3h ago
So im working on a project that for a US client, he wants the date input in mm/dd/yyyy format. This date input is to be a part of a long form. I looked up but couldnt find a component that can be used as a form element neither could I find a native way to change the date format in <input type="date" /> tag. I did try react-datepicker but since there are about 8-10 date inputs in the form, I cant just manually add each into the resulting data object
Mods please dont delete this, I cant post the code because it is confidential and I really need some help from the community
submitted by ..read more
Reddit » ReactJS
3h ago
I've been using Jotai recently and have been enjoying working with it. I think it's slightly more intuitive than Zustand as it more closely matches the useState hook. But it seems to be about less than half as popular, and I don't ever see it mentioned here. This has me a bit worried that it may not be long for this world.
Can you share any compelling reasons as to why you would choose Zustand over Jotai?
submitted by /u/codevipe
[visit reddit] [comments ..read more
Reddit » ReactJS
3h ago
Really sorry if this is a dumb question, pretty much the title, the fact that we don't have to find 10000 optimization techniques and memo everything is really cool, I was wondering if those same things would apply to react native as well or is this limited to the web for now, thanks!
submitted by /u/VolticShaz
[visit reddit] [comments ..read more
Reddit » ReactJS
3h ago
By default we can use Vite to create a React app with the latest version. I want to use Vite create a React v17 app, does anyone know how to bootstrap the React project with specific React version? Thanks.
submitted by /u/I_am_at_reddit
[visit reddit] [comments ..read more
Reddit » ReactJS
9h ago
Hi guys , In the startup I work at , we are just building classic CRM saas products ( lot of generic interfaces with a table and CRUD operations )
We have components in atomic structure with storybook , the idea here is How can I make something like NPM RUN BUILDER and It shows all the components and be like a website builder and basically drag and drop and then it generates the code for it?
is there any tool I could use or should I do something from scratch?
submitted by /u/CapitalPea6402
[visit reddit] [comments ..read more
Reddit » ReactJS
9h ago
How do I handle state management for a nextjs + supabase website ?
Example: One user has logged in and has access only to type 1 content. 2nd user has access to only type 2 content. How do I store this type 1 and 2 as per the user and show only their respective content ? Should I use something like redux or can I just store the type of content they want on a user attribute or something in the database and then serve the respective content ?
submitted by /u/naga-satya1
[visit reddit] [comments ..read more
Reddit » ReactJS
9h ago
Thought I’d post here -
Our company has a monolith front end application written in react / typescript and we are looking to transition to a microfrontend architecture.
Does anyone know of a consultant that specializes in these kinds of projects and would be interested in taking on a project for us?
submitted by /u/BoulderTennisGuy
[visit reddit] [comments ..read more