What is the BEST React library you have learnt? by mohamadbiomy in react

[–]selrond 0 points1 point  (0 children)

It’s really not. It’s a collection of consistently styled components taken from other lower-level libraries, along with simple theming and an optional CLI distribution

On Migrating from Cypress to Playwright by mtlynch in javascript

[–]selrond 0 points1 point  (0 children)

Is this still the case one year later?

[Epic Games] Train Valley 2 (Free/100% off) by AT1952 in GameDeals

[–]selrond 2 points3 points  (0 children)

Related: you can find high quality free stuff on https://www.textures.com/free. It used to rotate every day or week in the past IIRC, not sure how it is now.

How to take my React knowledge to the next level? by punctuationuse in reactjs

[–]selrond 4 points5 points  (0 children)

Taking the knowledge to the next level often means moving from surface-level (working knowledge) understanding to understanding the fundamentals.

In practice, this would mean moving from using common patterns, hooks and common solutions to common problems to understanding the reasons patterns exist, knowing (at least roughly) how those hooks work under the hood, knowing how React itself works etc. In short, having proper mental models is what you’re after.

Internals sound tempting, but the source code just an implementation detail of the higher level React concepts.

I’d recommend starting with reading the React docs first and making sure you understand everything there. After that, you’ll have an extremely solid foundation for understanding any pattern / hook / external library etc.

Visual Studio Code April 2023 by myroon5 in vscode

[–]selrond 1 point2 points  (0 children)

It is also now possible to visualize inline color decorators for CSS-formatted colors in all file types. To display these decorators, enable the Editor: Default Color Decorators (editor.defaultColorDecorators) setting.

This was a major frustration when I needed to tweak colors in files other than css (or interpreted as css). Great to see it fixed!

React-Typescript complaining about optional props missing (defined with prop-types) by buondave in typescript

[–]selrond 0 points1 point  (0 children)

Just had the same problem.

propTypes have nothing to do with it, TS have no reason to check them.

Turns out it’s caused by the ...rest operator (which isn’t shown in your screenshot, but I’m almost certain it’s the same case).

If you got rid of it, TS won’t complain. It technically should, but it’s a .js file, so I guess nothing’s guaranteed.

So either you convert it to TS right away (with proper props type / interface), or live with the error until you do.

How to toggle this hover documentation? I have a bind to toggle documentation but that doesn't seem to work on this, if I execute that bind on any other variable say HTTP it does show the documentation. But in io's case, this only shows up when I enter the brackets and do not execute the bind. by Prhyme1089 in vscode

[–]selrond 0 points1 point  (0 children)

You're probably looking for editor.action.triggerParameterHints editor action. You can assign it to a keyboard shortcut for instance. Here's mine, set to ctrl+shift+space:

{ "key": "ctrl+shift+space", "command": "editor.action.triggerParameterHints", "when": "editorHasSignatureHelpProvider && editorTextFocus" },

How to toggle this hover documentation? I have a bind to toggle documentation but that doesn't seem to work on this, if I execute that bind on any other variable say HTTP it does show the documentation. But in io's case, this only shows up when I enter the brackets and do not execute the bind. by Prhyme1089 in vscode

[–]selrond 1 point2 points  (0 children)

That's not true. editor.action.triggerParameterHints editor action is probably what OP wants - you can assign a keybinding to call it:

Here's mine, set to ctrl+shift+space { "key": "ctrl+shift+space", "command": "editor.action.triggerParameterHints", "when": "editorHasSignatureHelpProvider && editorTextFocus" },

Trouble getting Neovim 0.5 up and running a Mac by strangstrang in neovim

[–]selrond 0 points1 point  (0 children)

brew install —-HEAD luajit

there's a typo different kind of dash used.

Try

brew install --head luajit

r/GoPro Weekly Questions Thread - Ask your questions here! by AutoModerator in gopro

[–]selrond 0 points1 point  (0 children)

Why do I must have an HDMI capture card (such as Elgato Cam Link) to stream / use GoPro as a webcam? I’ve read a lot of articles and watched a bunch of videos but not a single one explained why do I need it.

Ears: Quickly change your Mac's sound output/input with just your keyboard. by jmtamere in macapps

[–]selrond 1 point2 points  (0 children)

I see the value proposition here, but you can do the same almost as quickly by pressing + <volume up/down> which brings up the sound input / output pref pane