yarn
yarn start
I choose to create some div between elements and gives it flex-grow: 1;
.
Other option will be creating svg, but it needs position, width of each elements. Using pure css is an easier approach.
I choose styled-components since it's like using native css. And here we need some custom css and it's easier to use native css.
I use TypeScript to check props types
prop-types
Extract constant values thanks to enum in TypeScript
RankTypes, ButtonSelectorTypes, Colors, FontSize
I use "react-select" component and styling it to meet requirement reference: https://react-select.com/styles#provided-styles-and-state
- functional test
- react component test