scriptstrap

1.0.3 • Public • Published

OOP version of BootStrap

Instruction

  • Export ScriptStrap class.
  • Create instance of this class.
    const instance = new ScriptStrap
  • Use addComponent method to create component.
    (input: tag, text = '', styles = [], children = [], state = null, setState = null, isChild = false).
    isChild flag true using inside of other addComponent method, what means you are creating components inside the parent.
    isChild flag false using if you just want to add component to ypur DOM without nesting and etc.

Advices

  • Try to create instance in live method of your parent components or when building your DOM get done.
  • You may create several instances in different places of your component to more flexability.

Readme

Keywords

none

Package Sidebar

Install

npm i scriptstrap

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

6.53 kB

Total Files

3

Last publish

Collaborators

  • slavus54