JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 64
  • Score
    100M100P100Q59227F
  • License MIT

Generate DOM for reactjs in vanilla javascript

Package Exports

  • tags

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tags) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Tags

Generate UI for reactjs in vanilla javascript.

The default tags.js build uses DOM elements for web browsers (tags/bootstraps/react-dom).

You can also use tags/bootstraps/react-native and tags/bootstraps/react-native-desktop.

Tags exposes a number of functions for easily creating views using flexbox layout.

// Views
tags.View
tags.TextView
tags.ImageView
tags.LinkView
tags.ListView

// Styles
tags.Width
tags.Height
tags.Background
tags.Color
tags.Style

// Helpers
tags.OnClick
tags.OnKeyPress
tags.OnChange
tags.Map
tags.ExposeGlobals
tags.MountApp

// Fonts
tags.LoadFont

// Flexbox
tags.Row
tags.Col
tags.RowReverse
tags.ColReverse
tags.Wrap
tags.WrapReverse
tags.JustifyContent
tags.AlignItems
tags.AlignContent
tags.Order
tags.Fix
tags.Flex
tags.AlignSelf

All commonly used methods can be made globally available:

tags.ExposeGlobals()

Example

See examples/exampleReactApp.js