1.0.7 • Published 2 years ago

x8react v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

X8react

Rendering elements conditionally in react

Using if Statment as attributes , and only render element if condition is true

Usage

import React from 'x8react';

function Home() {
  return (
    <>

      <div if={Loading}> // render only if Loading is true
        <Loading />
      </div>

      <div if={Loading == false}> // render only if Done Loading
        {...Content}
        </div>

    </>
  );
}
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago