boilerplate of variant map react stuff