nit: React style is to write this as

```
dependencies = (
  registration.eventTypes[camelCasedEventNameAlt].dependencies
);
```