ReactProps effect for reading props