defaultValue is not updating with dynamic variable in inputs when registering custom react components in builder

Trying to register our react component in builder which is accepting some props in current implementation, so how to pass/convert these props when registering the components in builder?

Currently doing in the following way using inputs but defaultValue is not getting updated with a dynamic variable inside inputs.

Builder.registerComponent(CustomComp, {
    name: 'CustomComp',
    inputs: [
      {
        name: 'inputVal',
        type: 'text',
        defaultValue: **variable**
      },
    ]
  });

@dharmaraju Instead of passing the variable directly you want to pass it as a template literal. So based on your above example, something like this:

let variable = 'default text';

Builder.registerComponent(CustomComp, {
    name: 'CustomComp',
    inputs: [
      {
        name: 'inputVal',
        type: 'text',
        defaultValue: `${variable}`
      },
    ]
  });

Try it out and let me know if that works!