const config = {
  "sex": "man",
  "faceColor": "#AC6651",
  "earSize": "small",
  "eyeStyle": "circle",
  "noseStyle": "long",
  "mouthStyle": "peace",
  "shirtStyle": "hoody",
  "glassesStyle": "none",
  "hairColor": "#000",
  "hairStyle": "normal",
  "hatStyle": "beanie",
  "hatColor": "#000",
  "eyeBrowStyle": "up",
  "shirtColor": "#9287FF",
  "bgColor": "#FFEDEF"
}
const myConfig = genConfig(config)
<NiceAvatar style={{ width: '5rem', height: '5rem' }} {...myConfig} />