We have to use the further mentioned syntax configuration to write inline CSS in Next JS.

Example

                                        

function HiThere() {

  return <p style={{ color: 'red' }}>hi there</p>;

  }

export default HiThere;

Suggest An Answer

No suggestions avaliable!