
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
react-guider
Advanced tools
Guide menu for applications
import React from 'react';
import ReactDOM from 'react-dom';
import { ReactGuider, ReactGuiderItem } from './main';
// // Render the main component into the dom
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
isGuideOpen: true,
listOfItems: [
{
top: '300px',
left: '50px',
buttonLabel: 'next',
text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Et, unde!',
onButtonClick: () => {
this.setState({
activeElement: 2
})
}
},
{
top: '300px',
left: '50%',
right: '50%',
buttonLabel: 'next',
text: 'Lorem ipsum dolor sit amet, consectetur.',
onButtonClick: () => {
this.setState({
activeElement: 3
})
}
},
{
top: '100px',
right: '60px',
buttonLabel: 'next',
text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa, excepturi.',
contentPositon: {
top: '-50px',
right: 'auto',
bottom: 'auto',
left: '-300px'
},
onButtonClick: () => {
this.setState({
activeElement: 1
})
}
},
{
top: '500px',
right: '50px',
buttonLabel: 'finish',
text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Suscipit, autem.',
contentPositon: {
top: '-150px',
right: 'auto',
bottom: 'auto',
left: '-300px'
},
onButtonClick: () => {
this.setState({
isGuideOpen: false
})
}
}
],
activeElement: -1
}
}
_handleOnToggle(_index) {
const _container = document.getElementById('ReactGuider');
if (_container.className !== 'ReactGuider ReactGuider--Open') {
_container.className = 'ReactGuider ReactGuider--Open';
this.setState({
activeElement: _index
});
}
else {
_container.className = 'ReactGuider ReactGuider--Open ReactGuider--HasActiveChildren';
this.setState({
activeElement: _index
});
}
}
render() {
const _s = this.state;
return (
<ReactGuider isOpen={_s.isGuideOpen}>
{
_s.listOfItems.map((_item, _index) => {
return (
<ReactGuiderItem
key={'ReactGuiderItem--' + _index}
buttonLabel={_item.buttonLabel}
text={_item.text}
top={_item.top}
right={_item.right}
left={_item.left}
isActive={_index === _s.activeElement}
onToggle={() => this._handleOnToggle.bind(this, _index)}
bottom={_item.bottom}
contentPositon={_item.contentPositon}
onButtonClick={_item.onButtonClick}
/>
)
})
}
</ReactGuider>
);
}
}
if (module.hot) {
module.hot.accept();
}
ReactDOM.render(<App />, document.getElementById('app'));
FAQs
React Guide Component for Apps
We found that react-guider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.