Skip to content

actbase/react-absolute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-absolute

platforms npm npm

github issues github closed issues Issue Stats

What is react-absolute

As already known React is very powerful framework for development. In JSX Struct we don't need to learn new feature. Developers sometimes should make some dependent component without main render block. We know some how appearencing custom Component on any time and any point. If you want using react js more powerfull should consider using our "react-absolute" solution.

Install

  • Using npm
npm install @actbase/react-absolute;
  • Using yarn
yarn add @actbase/react-absolute;

Getting Started / Usage

Preconfig for using.

  • On very first entry point. index.js or app.js
  • Make sure wrapping with Absolute
import Absolute from '@actbase/react-absolute';

const App = ()=>{
  return (
    <Absolute.Provider style={{flex:1}}>
      {/* rendered components before. */}
    </Absolute.Provider>
  )
}
export App;

Usage

  • Using with render block
import Absolute from '@actbase/react-absolute';

const SomeComponent = ({})=>{
  if( condition ) return null;  
  return (
    <Absolute style={{}}>
    
    </Absolute>
  )
}
  • Using with event function.
<SomeEventProvider someEventHandler={()=>{
  // adding absolute on your purpose.
  const handler = Absolute.add(
    <ToBeAboluteComponentYouHave />
  );

  // remove.
  handler.remove();
}} />

Interfaces & methods

  • props of Absolute.Provider
    • Methods
      • add

Contact us

If you consider make service with react.

Call us