Resets the component.
Reset resets the state of the component. All properties will be set to their default values, and any files open will be closed.