How do I change the style of the header using ReactTable

Felipe Muniz picture Felipe Muniz · Oct 1, 2018 · Viewed 11.9k times · Source

I need to change the default style to the style below

Answer

Zadiki Hassan Ochola picture Zadiki Hassan Ochola · Oct 25, 2019

one other solution would be to return a custom component in the header section.`

 const columns=[
      { 
        Header:()=><small className="my_custom_class">Name</small>,
        accessor:"name"
      }]`