const methods = [{method: 'users.get', params: [{'user_ids'}, {'fields'}]}]
this.state = {
'method': methods[0].method,
'params': methods[0].params
<FormLayoutGroup mode="horizontal">
{this.state.params.map(res=> (
<FormItem top={Object.keys(res)}>
<Input onChange={this.onChange}/>
</FormItem>
))}
</FormLayoutGroup>
async onChange(e) {
const { value } = e.currentTarget;
await this.setState({ method: method, params: methods[method].params});
}