import styled react code example Example 1: styled componets npm npm i styled-components Example 2: styled components npm install --save styled-components