felipesilva / dynamic-component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic Interactive Component

An example of how a React component can be dynamically created from a stringified Function (e.g., from a database).

The string is evaled into a factory function that is given createReactClass, createElement, and css from emotion. A React component is returned and rendered.

Here's how it looks:

screenshot

About


Languages

Language:JavaScript 55.9%Language:HTML 44.1%