next we going to dive in to the actual policy, in this policy we want to verify a certain user is a reviewer, so after the call im going to point to the "users" array, then use the condition includes ([...users].includes(value)), utilities function by default includes all Lodash functions, you can add custom utilities in the provider level. I'm going to use the map utility function to prepare an array of reviewers usernames.
Lodash specifically avoids this problem by managing a collection of microlibraries. The individual modules follow the "do one thing well" philosophy and may be consumed individually, but they're all managed within the larger umbrella project. date-fns is another project which uses a similar approach.
Run Linux Software Faster and Safer than Linux with Unikernels.
The commitizen command line utility. #BlackLivesMatterProject mention: How do you Git? | reddit.com/r/webdev | 2021-09-29
I make my commits from the command line using commitizen, following the conventional commits standard: https://commitizen.github.io/cz-cli/
Node.js Application ConfigurationProject mention: The Perfect Configuration Format? Try TypeScript | news.ycombinator.com | 2021-11-17
I have used TypeScript for config in a few projects, with node-config, and it’s substantially better IME than JSON/YAML/etc. Yeah it’s unconventional to write configs in a general purpose language, and I understand why that would be undesirable. But having configs validated at compile time is great at preventing bugs.
I’m not sure I’d recommend node-config (it was chosen by a past team). Its magic undermines the confidence in type safety provided by choosing TypeScript in the first place. But it does give some good baseline conventions one can apply without all the magic.
React Google Analytics ModuleProject mention: How to set up Google Analytics for React-Router? | reddit.com/r/codehunter | 2021-12-02
The package I'm looking at is, react-ga.
Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
A <QRCode/> component for use with React.
CSS media queries for React
Vest ✅ Declarative validations frameworkProject mention: Felte: An extensible form library for Solid | dev.to | 2021-12-08
Felte does not attempt to have the perfect solution on how to handle all scenarios regarding form management. This is why Felte offers an API to extend its functionality as your requirements grow more complex. You may have a preferred library you like to use, such as the really popular yup, or Vest (which was recently talked about during Svelte Summit). Modifying Felte’s behaviour to handle these scenarios can be done via the extend option on createForm’s configuration object. More about this can be read in the official documentation. To keep things simple for the purposes of this blog post, I am only going to write about some of the existing packages we maintain to handle some common use cases:
Open source library for using D3 in ReactProject mention: anyone tried nvd3 in react? I need a stacked area chart and like theirs | reddit.com/r/reactjs | 2021-08-20
Check this: https://react-d3-library.github.io/
Internationalize React apps. Not only for React.Component but also for Vanilla JS.Project mention: How to set dynamic language translation? | reddit.com/r/reactjs | 2021-03-26
You can give a try to formatjs that now includes react-intl or react-intl-universal by Alibaba. If you are looking for a ready to be consumed solution instead, I would suggest phrase.com.
Load stripe's checkout.js as a react component. Easiest way to use checkout with React.
A bit of nifty glue that automatically plugs your Backbone models and collections into your React components, on the browser and server
Allows to use React.js component as HTML element (web component)
A react.js reCAPTCHA for GoogleProject mention: Simple contact form with NextJS & EmailJS | dev.to | 2021-03-09
All I needed was some way to use reCAPTCHA within a React application, and react-recaptcha was more than enough to get me rolling. They offer a simple reCAPTCHA component that just requires a couple of config props and 2 callback functions to help verify a user's input. We also need to add a script to our in our _document.js file to use the Google reCAPTCHA CDN.
Run any command on specific Node.js versions
Segment.io analytics integration for redux.
A component for React that utilizes the Counterpart module to provide multi-lingual/localized text content.
Simple componentized localstorage implementation for Facebook's React.
React components for google places API.
Fully declarative React Lottie player
React bridge to Famo.us
Following the Unix philosophy without getting left-pad
1 project | reddit.com/r/programming | 8 Dec 2021
Computed in Vue3 with Objects
1 project | reddit.com/r/vuejs | 3 Dec 2021
How to set up Google Analytics for React-Router?
1 project | reddit.com/r/codehunter | 2 Dec 2021
How to add the new Google Analytics 4 in Reactjs app? You simply copy the Google Analytics script tag into the <head> section of your index.html file in the public directory. Yeah, I know right, it’s that obvious.
1 project | reddit.com/r/reactjs | 29 Nov 2021
[AskJS] NPM package for regional date format?
Loops, Array Methods, and Recursion
2 projects | dev.to | 18 Nov 2021
Sharing and bundling multiple vendor bundles into one vendor bundle using Webpack’s module federation and split chunks plugins
3 projects | dev.to | 5 Nov 2021
Are you hiring? Post a new remote job listing for free.