React中如何设置自定义滚动条样式

  .sectionLeft{

  width: 12%;

  height: 100%;

  overflow: hidden;

  background-color: #fff;

  border-radius: 5px;

  :global {

  ::-webkit-scrollbar {

  width: 5px;

  height: 10px;

  }

  ::-webkit-scrollbar-thumb {

  background: rgba(0,0,0,0.1);

  border-radius: 10px;

  }

  ::-webkit-scrollbar-track {

  border-radius: 10px;

  }

  }

  }