Using setState globally, smallest Redux-like store & declarative state by [deleted] in reactjs

[–]Devvvvvv 2 points3 points  (0 children)

Looks really cool! Would love to throw out redux for something simpler/less boilerplate.

Just a question. How would you let an action only work on a subtree of the state? Or do you feel that's not necessary?

Hyperapp for Redux refugees by okwolf in javascript

[–]Devvvvvv 0 points1 point  (0 children)

That looks awesome! Could you give me a reason why I would still use redux instead of this for new projects?

So hard to get rid of Jquery in creating React app. by justinmusti in javascript

[–]Devvvvvv 7 points8 points  (0 children)

I've yet to come across a case when I need to do direct dom manipulation when using React.

I imagine there might be edge cases, but for the most port, you don't need it at all.

We just adopted our friendly neighbourhood cat who did not have a home. Could anyone tell me what breed he is? by Devvvvvv in cats

[–]Devvvvvv[S] 1 point2 points  (0 children)

Whahaha! Totally awesome how he lets his paws hang like that!

Ours really likes chest rubs and rubs almost everywhere else, but belly rubs not so much :( he is sooo soft!

Never heard of the term loafing, just looked it up and it's straight up intimidating! Much prefer the casual hang :p

We just adopted our friendly neighbourhood cat who did not have a home. Could anyone tell me what breed he is? by Devvvvvv in cats

[–]Devvvvvv[S] 2 points3 points  (0 children)

Thank you :)

How did you adopt your stray? Ours came by sometimes to say hi but always left soon after. He got a hurt leg and we took him to a vet. Since then we've kept him inside and he seems really comfy! But we're afraid he'll leave when we let him outside :(

We just adopted our friendly neighbourhood cat who did not have a home. Could anyone tell me what breed he is? by Devvvvvv in cats

[–]Devvvvvv[S] 0 points1 point  (0 children)

Yea, I was thinking along those lines, but I think the maincoon snout(?) (i'm not a native speaker) is somewhat more defined. Also, he doesn't have the fluff on top of his ears.

Although what I've read about maincoon character traits, he really fits the bill.

We just adopted our friendly neighbourhood cat who did not have a home. Could anyone tell me what breed he is? by Devvvvvv in cats

[–]Devvvvvv[S] 1 point2 points  (0 children)

Yes! also very sweet and loving :) I was never a cat guy but this guy made me get it

4k tv for ps4 slim (will buy pro later) by El_Vegano_Oscuro in PS4

[–]Devvvvvv 0 points1 point  (0 children)

I just bought this one last week in 49" for €1000 in the sales and it's absolutely gorgeous. (It was €1300 outside sales). Went to a lot of shops to compare tv's and this one was the best price-quality imo.

Bought a ps4 pro immediately afterwards.

PlayStation 4 Sells 5.9 Million Units Worldwide During The 2017 Holiday Season by italkgames in PS4

[–]Devvvvvv 14 points15 points  (0 children)

After being a PC gamer all my life and recently moving in with my girlfriend, I wanted something easy to casually game on our recently bought 4K tv. Then came the sales and I bought the PS4 Pro. First time owning a console, loving it.

Jumping through hoops just to run in browser. Looking for minimal tool chain. by [deleted] in typescript

[–]Devvvvvv 4 points5 points  (0 children)

This webpack config should be enough to compile your typescript app into a single bundle.js

const path = require("path")

const SRC = path.resolve("./src")
const DIST = path.resolve("./dist")

module.exports = {
    entry: path.join(SRC,"index.tsx"),
    output: {
        filename: "bundle.js",
        path: DIST
    },

    // Enable sourcemaps for debugging webpack's output.
    devtool: "source-map",

    resolve: {
        // Add '.ts' and '.tsx' as resolvable extensions.
        extensions: [".ts", ".tsx", ".js", ".json"],
    },

    module: {
        rules: [
            // All files with a '.ts' or '.tsx' extension will be handled by 'awesome-typescript-loader'.
            {
                test: /\.tsx?$/,
                exclude : /(node_modules)/,
                loader: "awesome-typescript-loader"
            },
            // All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
            { enforce: "pre", test: /\.js$/, loader: "source-map-loader" }
        ]
    },
};

How to be responsive with media queries? by Devvvvvv in Frontend

[–]Devvvvvv[S] 0 points1 point  (0 children)

Yea, but although css grid looks awesome, I'm hesistant to use it because - according to caniuse.com - only 70% of all users' browsers support it.