Help-Article | Tailwind CSS Starter Template - Help Article
kandi X-RAY | Help-Article Summary
kandi X-RAY | Help-Article Summary
Help Article is a clone of the Weebly Support article created in Tailwind CSS by Tailwind Toolbox. Click here to preview the blog post.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Help-Article
Help-Article Key Features
Help-Article Examples and Code Snippets
Community Discussions
Trending Discussions on Help-Article
QUESTION
I'm using React
for this project.
I have got a Help
section on my website, This help section has about 50+ articles. If you go to /help-open-account
I want to render some html
and if I go to /fraud
I want to display different html
it is all dynamic content so its using the same js file hence why I want to render depending on the link.
I know how to use the conditional statements but how can I use the current url as a statement so like path="/(?!help--lostMyCard)"
if its currently on that url then render the content this content instead of x
content.
The app.js file has this following code ->
...ANSWER
Answered 2019-Apr-15 at 10:07I see that you want to access route information in component.
It seems that what you are looking for has already been solved here How to get current route in react-router 2.0.0-rc5
For more information - Someone can club understanding with link here https://reactjs.org/docs/conditional-rendering.html in addition to above stackoverflow link i have mentioned in this comment to completely solve such problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Help-Article
Download the latest release
Clone the repo: git clone https://github.com/tailwindtoolbox/Help Article.git
Fork the repo
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page