How to optimize your React application for the Interaction to Next Paint (a new Web Vitals metric)?
Reddit » ReactJS
by /u/letelete0000
18h ago
submitted by /u/letelete0000 [visit reddit] [comments ..read more
Visit website
Seeking Feedback: Introducing Themes in React ChatBotify v2.0.0! Need Advice on Handling Assets and Versioning
Reddit » ReactJS
by /u/FruznFever
18h ago
Hey everyone! ? I'm currently working on v2.0.0 of React ChatBotify, an open-source React ChatBot library which I first shared about here. Pardon the long post ahead but I'm looking to bounce ideas and hopefully get some advice or opinions with regards to a key feature that I'm working on for this update. Specifically, v2.0.0 is geared to introduce themes into the chatbot. Currently, the library already provides a high degree of customizing chatbot appearance to users by exposing style props and facilitating modifications to CSS classes. However, all modifications begin with a base template t ..read more
Visit website
Is using a factory component to change Authentication context at runtime a valid way to do this, or is there a better way?
Reddit » ReactJS
by /u/timeIsAllitTakes
18h ago
I have an application that allows users to login with different OAuth service providers. Because I don't know which will be used until the user selects one, I have a single useAuth hook that is created by passing the login/logout/getuser methods for the selected, concrete provider type. However, because it's selected at runtime, I can't initialize a provider and context at app start. I solved this by creating a factory provider, and when a particular OAuth implementation is selected, it updates the factory provider's context with the selected OAuth provider name and creates the authentication ..read more
Visit website
Finished my react course, ready to build my first app, what tools do I REALLY need?
Reddit » ReactJS
by /u/Typical_Newspaper408
18h ago
Freshly minted from my React course, ready to build my app: its the front end to our SAAS product. So if we got a few hundred users, this is success. No need to over build or overtune to start with, it just needs be a way for the inbound customers to sign up for the service. Receive a product description, click buy, accept terms, enter credit card checkout. do the Stripe thing. Payments will be recurring and usage based. That's really it at this stage. Regular stuff like "My Account" pages. It'd be nice if it didn't look like crap. Now I already know enough to build this with what was ..read more
Visit website
Authentication and Authorization using next-auth V5
Reddit » ReactJS
by /u/Background_Air_7097
18h ago
I am developing a website. since it is developed by two different frontend and backend developers, the frontend uses Next.js and express is used for the backend. How can I use next-auth V5 regarding that the Next.js api directory is not being used? submitted by /u/Background_Air_7097 [visit reddit] [comments ..read more
Visit website
How to improve your unit tests by not using data-testid
Reddit » ReactJS
by /u/blahuehue
18h ago
submitted by /u/blahuehue [visit reddit] [comments ..read more
Visit website
Child component using outdated variable values
Reddit » ReactJS
by /u/probox36
18h ago
In my project I pass onSortOrderChange function as an onClick handler for a <select/> element in child component: <SortOrderPanel notifyParent={onSortOrderChange}></SortOrderPanel> The problem is that when onSortOrderChange tries to acces any variable from the parent component, it ends up working with an outdated value which those variables were initialized with on first render. It works "indirectly" too: even when onSortOrderChange calls a different function from parent component that is trying to access some variable, this function gets an outdated value from the contex ..read more
Visit website
Migrate Redux to RTK - optimal state structure
Reddit » ReactJS
by /u/Mefodii
18h ago
Hello, I have started to upgrade one of my old application which used old Redux structure (files for actions, types, reducers) to RTK structure (with features folders and slices). There, one part of my state is "groups", which from API comes a aggregated data of 3 tables: Group, Video, Image. With following relationship: Group:Video (1:n) / Group:Image(1:n). Note: each of the table has its own CRUD API, only "getGroups" is special, because I wanted to get all the data with a single request. So, a group is a show/series title (and other info) which contains a list of Video (seasons) and list o ..read more
Visit website
Highlight word on search
Reddit » ReactJS
by /u/im-me-not-u
18h ago
Im planning to add search in my application, it will be similar ctrl + F in the browser, I need the same functionality. Is there any libraries for this? i have checked react-highlight-word. But this doesnt fit my needs. My data in the DOM is populated from API response. So its not hardcoded. Is there any way? submitted by /u/im-me-not-u [visit reddit] [comments ..read more
Visit website
Which Newsletters you use ? For staying update in dev aspects ?
Reddit » ReactJS
by /u/AbjectRadish2919
18h ago
submitted by /u/AbjectRadish2919 [visit reddit] [comments ..read more
Visit website

Follow Reddit » ReactJS on FeedSpot

Continue with Google
Continue with Apple
OR