Custom fields from react project

Custom fields from react project

Hi, 

How I can add custom fields to SalesIq chat from my react project,
just calling this API  not working for me

.customfield.add()