import Layout from '../../components/layout';
export default Layout;
Learning Base Web
We understand that learning new libraries have their own set of challenges. To help you get started, we are here to help!
Controlled and Uncontrolled components
Most code examples you'll find on the documentation site feature controlled components.
In HTML, form elements such as
<select>typically maintain their own state and update it based on user input. In React, mutable state is typically kept in the state property of components, and only updated with setState().
We can combine the two by making the React state be the “single source of truth”.
Most Base Web components are released with both options:
Statefulcomponents, to support uncontrolled usage,
- and the default component, that supports controlled usage.
Your first Base Web example
You can find the simple Base Web application example in the Usage section. It only contains a button.
Your next Base Web example
It's time for you to build something on your own! If you got stuck, or if you've built something using Base Web, please let us know. We're happy to help or feature your application on this website!
Once you have a better understanding of Base Web, we recommend diving into more advanced topics like: