- Notifications
You must be signed in to change notification settings - Fork0
vacom/Requite
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Dynamic selector for React components. Great for creating dynamic pages. Through some form of interaction, for example Loop, a page can be created dynamically. It can be used for a dynamic editor or even through a Json file.
Just install the dependency and start using
npmirequiteoryarnaddrequite
After installing the dependency, just import the components you need
importRequitefrom"requite";
importRequitefrom"requite";constText=()=><p>Hello Text Component</p>;constHeader=()=><h1>Hello Header Component</h1>;constErrorHandler=()=><div>Component Type not found on Selector</div>;//this is not requiredclassExampleextendsComponent{render(){constComponents={1:Text,Header:Header};return<Requitelist={Components}type={"Header"}error={ErrorHandler}/>;}}
MIT ©vacom