JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="" ng-controller="Ctrl">
    <button ng-click='createNewUser()'>Create</button>
        <input ng-model='user.A'>
        <input ng-model='user.B'>
        <input ng-model='user.C'>
        <input ng-model='user.D'>
        <input ng-model='user.E'>
</div>

JavaScript

function Ctrl($scope){
    $scope.user = {};
    
    $scope.createNewUser = function(){
        $scope.user = {};
    }
}