1.0.7 • Published 3 years ago

x8react v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago