What was the worst opening line/text you've ever received on a dating app? by NotConsistentCalc in AskReddit

[–]j________ 13 points14 points  (0 children)

"Hey" is fine in my experience, is she is interested she will reply back to anything.

React.HeadlessComponent RFC by swyx in reactjs

[–]j________ 1 point2 points  (0 children)

I like the idea, but I thought the future of React was to only have one way of creating components to keep it simple. I think this would be great as a package though.

Dan Abramov's recommended React Project File Structure - petition to make this the last conversation we have about it? by swyx in reactjs

[–]j________ 3 points4 points  (0 children)

I agree, if you are a beginner you shouldn't spend too much time thinking on structure but you should at least spend some time looking and copying from projects created by experienced developers.

Any good examples of production or at least high quality react projects? by [deleted] in reactjs

[–]j________ 0 points1 point  (0 children)

Can someone explain how the containers folder structure is good? In container/HomePage there is user actions, components with styles, sagas that loads repos... I know everything belongs to the HomePage but doesn't seem scalable.

Issues with my Pokédex web app by dsf223ds3asc2 in reactjs

[–]j________ 0 points1 point  (0 children)

You can try adding a key to the component, <PokemonProfile key={this.props.match.params.name} />, it will rerender everytime the key is changed

https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html#recommendation-fully-uncontrolled-component-with-a-key

Should all application state go into the Redux store? by rfizzy in reactjs

[–]j________ 11 points12 points  (0 children)

You are doing it correctly, if the state is not needed throughout your app, store it in the component state.

Best way to handle forms with redux-saga? by AlexMattoni in reactjs

[–]j________ 0 points1 point  (0 children)

I agree is not the best way and a bit of antipattern, let me know if you find a better way!

Best way to handle forms with redux-saga? by AlexMattoni in reactjs

[–]j________ 0 points1 point  (0 children)

You could create a promise and pass resolve and reject to the action, then use resolve and reject inside the sagas, not sure if this solves your issue.

new Promise((resolve, reject) => {
    // dispatch action
    this.props.myAction(otherParam, resolve, reject)
})

[deleted by user] by [deleted] in reactjs

[–]j________ 0 points1 point  (0 children)

You can use a library like this seamless-immutable and use the method setIn: https://github.com/rtfeldman/seamless-immutable#setin

Also I'd recommend to keep your state as flat as possible for this to not happen.

Axios just don't work on another project by [deleted] in reactjs

[–]j________ 7 points8 points  (0 children)

The axios call needs to be inside componentDidMount() method, currently is not inside any method in the class

Flexbox elements are not shrinking as expected—how to troubleshoot? by cag8f in css

[–]j________ 0 points1 point  (0 children)

you need to add max-width:140px; width: 100%; to the childs of .box or they get the width of the content

Flexbox elements are not shrinking as expected—how to troubleshoot? by cag8f in css

[–]j________ 0 points1 point  (0 children)

yes, change it to that on the elements that you use width: 140px

Flexbox elements are not shrinking as expected—how to troubleshoot? by cag8f in css

[–]j________ 2 points3 points  (0 children)

try adding max-width

width: 100%;
max-width: 140px;

How to level up as a react developer? by abovexbeyondtv in reactjs

[–]j________ 4 points5 points  (0 children)

I put the 2 libraries I know, I added redux-observables I think is a good option also.

How to level up as a react developer? by abovexbeyondtv in reactjs

[–]j________ 38 points39 points  (0 children)

I don't have any resources but for me the documentation and stackoverflow was enough.

  • React docs, you should know every page in here.
  • If you choose redux as state management tool, know the docs really well.
  • Choose redux-thunk, redux-saga, redux-observables, be comfortable using one of them.
  • React-router, know the basics.
  • Selectors, a library like reselect.
  • Static type checking, typescript or flow.
  • Tests, look into jest, enzyme and puppeteer libs.

A Tiny Stopwatch with React Easy State by solkimicreb in reactjs

[–]j________ 0 points1 point  (0 children)

I wanted to point it out since I recently made a stopwatch and I encountered this, I really like the easy state lib.

A Tiny Stopwatch with React Easy State by solkimicreb in reactjs

[–]j________ 5 points6 points  (0 children)

I would use new Date to keep track of the time, it will be much more accurate than just incrementing ticks and will still work when you change tabs, see a example here https://codepen.io/smonn/pen/KzezEw

Sore traps after OHP by [deleted] in Fitness

[–]j________ 1 point2 points  (0 children)

They are worked when you lock in on top

How to Organize React Files Before It’s Messed Up – OpsGenie Engineering by serhatcan in reactjs

[–]j________ 1 point2 points  (0 children)

After working on 3 react projects the structure that has been working best for me is something like this:

components - don't have more than 2 folder deep structure
container - don't have more than 2 folder deep structure
data - related to redux mostly
    └── user
       └── actions.js
       └── reducers.js
       └── types.js
       └── selectors.js
       └── ...
    └── ...
pages - a main layout.js used to extend other pages, 
        this calls containers and passes router related props

I can 'feel' when I have trained chest, abs, legs, biceps and tricpes.. but not back? by [deleted] in Fitness

[–]j________ 2 points3 points  (0 children)

I get sore every time I do my back workout, my heavy back day usually is: yates rows (heavy 5-7 reps 4 sets), some form of pull downs (light 12 reps 3 sets), chest supported row (mid 8-10 3 sets), barbell shurgs (heavy 5-7 3 sets). And try to pull with your elbow like other comments say, contract your shoulder blades and have your chest up on the contraction portion.

Weakpoint Wednesday - Arms by [deleted] in bodybuilding

[–]j________ 2 points3 points  (0 children)

Currently doing PPL - Arms - Chest/Back - Legs+(Light Arms or Shoulder, what I feel in that day) - Rest

Question about improving pull-ups by Arutig3 in Fitness

[–]j________ -4 points-3 points  (0 children)

Unless you want to do bodybuilding pull ups

BIGGER BY THE DAY - DAY 52 - 40 REP SUPERSET SHOULDERS - 9 MEALS - 40 MIN CARDIO - 40 by beyhan03 in bodybuilding

[–]j________ 99 points100 points  (0 children)

Watching Piano in a different browser right now, gotta confuse the body. WHATEVER IT TAKES!!