@chronocide/spark
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

jsx-flow

jsx-flow is a simple JSX templating language.

Getting Started

Installation

npm i jsx-flow

Example

Using jsx-flow should feel familiar for those used to writing JSX:

tsconfig.json

{
  ...
  "jsx": "react",
  "jsxFactory": "spark.createElement",
  "jsxFragmentFactory": "spark.Fragment"
  ...
}

index.tsx

const Template = props => (
  <html lang="en">
    <body>{props.children}</body>
  </html>
);

const Page = () => (
  <Template>
    <h1>Title</h1>
  </Template>
)

Readme

Keywords

none

Package Sidebar

Install

npm i @chronocide/spark

Weekly Downloads

3

Version

0.0.5

License

GPL-3.0

Unpacked Size

53.3 kB

Total Files

6

Last publish

Collaborators

  • chronocide