1.0.3 • Published 3 years ago

scriptstrap v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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.
1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago