To integrate the WCAG Higher-Order Component (HOC) into your project, follow these steps:
- Import
withAccessibility
from the/hoc/withAccessibility.jsx
file into your higher-level component (e.g.,App.jsx
). - Wrap your component with the HOC during export, as shown below:
import withAccessibility from "./hoc/withAccessibility";
const App = () => {
// Your component logic here
};
export default withAccessibility(App);