Posts

Showing posts from December 3, 2018

Problem with Typing HOC react-select component

Image
up vote 0 down vote favorite Currently, I am trying to build a HOC component of react-select to have default theme like this (in Typescript ). import * as React from 'react' import Select from 'react-select' import Theme from './theme' export class MySelect extends React.Component<__ReactSelectProps__> { render (): JSX.Element { return ( <Select {...this.props} theme={(theme) => Theme}/> ) } } My question is, what is the best way to grab get the typing ReactSelectProps that I need to properly type MySelect component? reactjs typescript react-select share | improve this question asked Nov

What's the proper way to fit a hybrid/commuter bike?

Image
up vote 7 down vote favorite 1 What's the proper way to fit a hybrid/commuter bike? Most detailed bike fit articles seem to apply to road bikes but not so much for hybrid/commuter bikes which cycle commuters, recreational cyclists, and weekend warriors often use. A good bike fit can encourage cycling for transportation, improve fitness and health, and shorten trip times because it increases comfort, reduces injuries, improves power output, and reduces the risk of neglected muscle groups while exercising. From what I learned, posture actually affects which muscle groups are emphasized. It's about as important as learning how to pedal properly. Using more of our muscle groups can increase endurance and power. It may even improve blood pressure responses during exercise which is especially important for those with a heart c