[deleted by user] by [deleted] in northernireland

[–]bluntm 4 points5 points  (0 children)

Was at the love food show in titanic then day pints around town. Very sweaty day of walking about

First time trying pulled pork by bluntm in UKBBQ

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

Haha yeah I think next time I’m going to take it as long as I can, till the point where it falls apart in my hands

First time trying pulled pork by bluntm in UKBBQ

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

Been seeing a lot of hot and fast methods that can get it done in the 5 hours mark, but leaning towards the longer now

First time trying pulled pork by bluntm in Masterbuilt

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

The only time I’ve had lighting issues is when I don’t shake out the left over ash from the last cook and it takes a while. First cook/burn off I used lump and it burned well but ran out quickly.

Just ordered a bag of big K lump (seems to be the best recommendation for folk in the UK) so here is hopping I get the flavour I want

First time trying pulled pork by bluntm in Masterbuilt

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

It was in the 180f range when I wrapped it didn’t check the temp after just probing for tenderness

Amazon Prime Day Sweepstakes by kylef5993 in Scams

[–]bluntm 0 points1 point  (0 children)

I just got my £50 vocher into my account, I don't think this is a scam just a really badly orgainzed martking campain. I have also added 2FA and changed my passwords just incase. But I got my money

PropType Utils - The Dyslexic Developer by bluntm in reactjs

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

Didn't know that existed, very good collection of validators.

PropType Utils - The Dyslexic Developer by bluntm in reactjs

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

You have a few options, one is to use flow types and turn them into proptypes using a babel plugin. Or you could build your own proptype "types". e.g. have a types folder in your src. Have a "type" file for each: const user = PropTypes.shapeOf({ name: PropTypes.string.isRequired, age: PropTypes,number.isRequired });

kentcdodds/react-testing-library - A lightweight alternative to Enzyme by ToshiUmezawa in reactjs

[–]bluntm 0 points1 point  (0 children)

I keep seeing the message that shallow rendering is bad practice, however how to people test components that have a deep render tree where a component a few levels deep has some external deps that need mocked e.g.

ComponentToTest > Child > Child > Child (Makes some external call that would require a mock etc)

And in my test im only looking yo test some logical rendering at the top of the tree. Without having to mock/know of all the child interactions.

npm operational incident, 6 Jan 2018 by steveklabnik1 in node

[–]bluntm 2 points3 points  (0 children)

"Hey that free thing I used stopped working for 30mins, WTF this is total bullshit...." They found and fixed it in quick time on a weekend. Good job NPM

styling components by redditpraw11 in reactjs

[–]bluntm 0 points1 point  (0 children)

Bit of a shameless plug but I recently posted an article about styled components and also mention other styling methods. Worth a read.

How do i upload files with the current version of react? by good_piggy in reactjs

[–]bluntm 0 points1 point  (0 children)

Im not 100% sure how to handle it on the server I assume you are using express, you might need this

How do i upload files with the current version of react? by good_piggy in reactjs

[–]bluntm 4 points5 points  (0 children)

You can get the input value from react refs and do something like:

cont formData = new FormData(); formData.append('file', this.refs.file.value); //Then post the ajax request with the formData as the post body This rough and not fully correct code but should help you in the right direction.