score:0
you need to add a route to custom page in customroutes:
customroutes.js:
import react from 'react'
import { route } from 'react-router-dom'
import subscribe from 'your_path_to/subscribe'
const customroutes = [
<route exact path="/subscribe" render={() => <subscribe />} />,
]
export default customroutes
Source: stackoverflow.com
Related Query
- Why isn't MenuItemLink rendered inside the menu?
- react nesting 3 components opening and closing tag where when the element inside the tag isnt rendered
- Reactjs: why use const {} = this.props and why put it inside the render function
- Why does the selector inside useSelector run twice?
- Why is react state(array) empty inside callback function? Why is it not using the updated value from outer scope?
- Why don't I see the different li markups inside my page?
- Why is the state not updating inside this react Hooks component?
- Why doesn't <Table/> show the check box when rendered multiple times?
- I used two 'setState' inside a handleChange of input, for searching on the array. why the search is unseccesfull?
- Why in the new react-router-dom <Redirect/> does not fire inside the setTimout?
- Why I'm getting this Error: Invalid hook call. Hooks can only be called inside of the body of a function component/
- React-Bootstrap: Why renders the Alert component the text differently if the text is stored inside a state variable?
- React: Why are these components not updated when useState changes? (components rendered after the app is mounted)
- How to link to Routes inside the component rendered by another Route with React Router
- why do we need to put the onViewableItemsChanged prop inside a useRef hook in react native
- why isnt the flex attribute working in react styled components?
- React: Why won't the variable 'names' show inside render?
- Why can I not call my function inside the render ()?
- Why is the span element rendered by the Text component from the Grommet library, able to get margin-top?
- Why the state is still showing Promise while using redux? and how should I access the array inside the result?
- Why inside the then() the data exist, and out side doesn't - Axios returning undefined
- Why doesnt the variable secondMenu update on choosing an option from select menu using react?
- Why won't the user input go inside the database despite success message?
- datepicker is traped inside the button menu
- React router 4 - Why is my component only rendered on manually setting the url but not on clicking a Link with same url?
- Why Is The index A Class From A Rendered List Using map Function In React Hooks?
- React. Why is the return inside a map, not the other way around?
- Why am I getting an infinite loop inside the component as state is globally managed?
- React: why set the document title inside useEffect?
- Why does my React app menu open when I am only changing the state and am not using any CSS?
More Query from same tag
- ReactJs Cannot read property 'props' of undefined
- Load state/data before render?
- How to dynamically show a list of data by React?
- Too much child component props, should i pass them using a dedicated class?
- useEffect hook dependency not getting updated
- Post data through API with RecoilJS
- React big-calendar not showing or loading at all
- Add additional onClick() to Navigation Control
- how to set focus to next input on enter key press in react js with refs
- Exposing third-party lib (Firepad) methods in a React component
- Issue when animating modal component with a Portal using React Hooks
- Can't disable pointer-events in React app
- Preventing UI flicker when loading async data in React.js
- Question on .this binding within a React Component
- creating a grid in reactjs
- Using React and Electron - react-router error
- Testing onChange function in Jest
- Using custom classes when styling a theme in MuiTheme
- useEffect called many times or doesn't access updated variable. How to set the correct dependency on useEffect?
- When i click the menu in drop down, How can i be able to pass value and hit second api?
- Can't build React/Next project - found page without a React Component as default export (context api file)
- ES6 import statements that assume .jsx ending in webpack
- Making a value of an object to null in a object list in javascript
- Mention list and emoji top position (Draft.js)
- Wordpress registerBlockType, data not fetched when saved
- Append array of values to the current array in a state in React JS
- React Hooks Static Variables: Object Property vs useRef()
- create-react-app - react-scripts: command not found
- React - styled-components, props, and TypeScript
- How to make some columns fixed and some columns draggable in React Table - ReactJS