I found myself in a situation where the number of components start to get annoying. So I put them in a wrapper file:
import CreateDatabaseTask from './tasks/CreateDatabaseTask'
import CreateMigrationsTask from './tasks/CreateMigrationsTask'
...
export const allTasks = [
CreateDatabaseTask,
CreateMigrationsTask
...
]
Next, in my tasklist I do
import {allTasks} from './tasks/allTasks'
But in the render() method I am not sure how to populate a div from the allTasks array?
I have tried to map the array into Components but cant figure out how to set the component name implicitly.