working stateful renderers, needs container on js side