generate code for reactive and dynamic attrs