# Conditional rendering with weweb

**URL:** <https://community.weweb.io/t/conditional-rendering-with-weweb/1184>\
**Category:** Ask us anything\
**Created:** [September 27, 2022, 3:35am UTC](https://community.weweb.io/t/conditional-rendering-with-weweb/1184 "2022-09-27T03:35:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![khairul](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@khairul](https://community.weweb.io/u/khairul)\
**Post date:** [September 27, 2022, 3:35am UTC](https://community.weweb.io/t/conditional-rendering-with-weweb/1184/1 "2022-09-27T03:35:04Z")

</div>

Hi is there a way to do conditional rendering in weweb? Since weweb uses vue and it is particularly easy with vue v-if, or is it not that simple? Is there a way to do it? Also if it is possible, where do I get and put the value for the data for the conditionals?

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [September 27, 2022, 7:27am UTC](https://community.weweb.io/t/conditional-rendering-with-weweb/1184/2 "2022-09-27T07:27:10Z")

</div>

Hi, sure! You can bind the display and use the condition you want. 🙂

 ![Capture d’écran 2022-09-27 à 09.26.13](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/2cc6db438248cb73361edf2529bed20aced9b0d7.png)

---

<div class="post-metadata">

**Author:** ![khairul](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@khairul](https://community.weweb.io/u/khairul)\
**Post date:** [September 27, 2022, 8:21am UTC](https://community.weweb.io/t/conditional-rendering-with-weweb/1184/3 "2022-09-27T08:21:24Z")

</div>

Is there another way aside from conditional display? Since it is not entirely conditional rendering. I don’t want someone to inspect and it is full off hidden divs that he can just play around and unhide it all.

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [September 28, 2022, 1:11pm UTC](https://community.weweb.io/t/conditional-rendering-with-weweb/1184/4 "2022-09-28T13:11:33Z")

</div>

Not at this moment, we have technical limitations preventing us to use v-if on element. Prerendering and component variables are two constraint we have right now but we are discussing about the possibility to provide a special v-if element for advanced case. But it’s not planned for anytime soon.

---

<div class="post-metadata">

**Author:** ![khairul](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@khairul](https://community.weweb.io/u/khairul)\
**Post date:** [September 28, 2022, 1:33pm UTC](https://community.weweb.io/t/conditional-rendering-with-weweb/1184/5 "2022-09-28T13:33:26Z")

</div>

Thank you for your answer, yes I hope weweb eventually improves the architecture and turn into component based designs, for better scaleability and extensibility for users

---

<div class="post-metadata">

**Author:** ![Quentin](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/quentin/32/6_2.png) [@Quentin](https://community.weweb.io/u/Quentin)\
**Post date:** [September 28, 2022, 4:06pm UTC](https://community.weweb.io/t/conditional-rendering-with-weweb/1184/6 "2022-09-28T16:06:04Z")

</div>

It’s the exact thing on our medium-term roadmap @khairul 😉

Making Weweb fully component-based using inheritence, and letting you sell your components on a marketplace.

We think it’ll be live Q1 next year 🙂

---

<div class="post-metadata">

**Author:** ![khairul](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@khairul](https://community.weweb.io/u/khairul)\
**Post date:** [September 28, 2022, 4:41pm UTC](https://community.weweb.io/t/conditional-rendering-with-weweb/1184/7 "2022-09-28T16:41:49Z")

</div>

You all got me really excited, this is groundbreaking. I think there are several things can be hugely improved but your roadmap for now makes much sense. go weweb 💪
