
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
react-journey
Advanced tools

React components to create a delightful interactive journey.
Add to your project using npm i -S react-journey
JourneyProvider. react-journey provides a JourneyComponent out of the box, but it is unstyled. You will most likely want to provide your own styled component in place of this.import React from 'react';
import { JourneyComponent, JourneyProvider } from 'react-journey';
ReactDOM.render(
<JourneyProvider Component={JourneyComponent}>
<App />
</JourneyProvider>,
document.getElementById('root')
);
JourneyStep. You should provide a message prop for the step to show.import React from 'react';
import { JourneyStep } from 'react-journey';
const MyApp = () => (
<JourneyStep message="Header">
<p>A step in the journey!</p>
</JourneyStep>
);
import React from 'react';
import { useJourney } from 'react-journey';
function App() {
const { run, stop } = useJourney();
useEffect(() => {
run();
return stop;
});
return (
<p>My app</p>
);
}
You can use the useStep hook if you don't want to use the JourneyStep component. If you don't want to alter your HTML structure for example.
import React, { useEffect, useRef } from 'react';
import { useJourney } from 'react-journey';
function App() {
const { useStep } = useJourney();
const el = useRef(null);
useStep(el, 'This is the message for this element');
return (
<p ref={el}>My app</p>
);
}
You can manually register—and unregister—elements from the tour if you don't want to use the JourneyStep component or the useStep hook. If you don't want to alter your HTML structure for example.
import React, { useEffect, useRef } from 'react';
import { useJourney } from 'react-journey';
function App() {
const { register, unRegister } = useJourney();
const el = useRef(null);
useEffect(() => {
const { current } = el;
register(current, 'This is the message for this element');
return () => unRegister(current);
}, [register, unRegister]);
return (
<p ref={el}>My app</p>
);
}
Please raise any issues on the GitHub repo.
See CONTRIBUTING.md.
FAQs
Create a delightful journey with React components.
The npm package react-journey receives a total of 1 weekly downloads. As such, react-journey popularity was classified as not popular.
We found that react-journey 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.