Bootstrap a Contentful App
MIT License
Bot releases are hidden (Show)
Published by andipaetzold over 2 years ago
Improved create-contentful-app tooling for the App Framework
The create-contentful-app CLI has been rewritten to be faster and more flexible. It is now possible to bootstrap an app with JavaScript instead of Typescript, Yarn instead of npm or even create an app from your custom template. All you need to do is run npx create-contentful-app
. To learn about how to use the new features, simply run npx create-contentful-app –help
. For more details, please check out our documentation.
Published by andipaetzold over 2 years ago
Improved create-contentful-app tooling for the App Framework
The create-contentful-app CLI has been rewritten to be faster and more flexible. It is now possible to bootstrap an app with JavaScript instead of Typescript, Yarn instead of npm or even create an app from your custom template. All you need to do is run npx create-contentful-app
. To learn about how to use the new features, simply run npx create-contentful-app –help
. For more details, please check out our documentation.
Published by andipaetzold over 2 years ago
Published by andipaetzold over 2 years ago
React Hooks for building apps faster
React is the most popular framework when it comes to writing Contentful apps and with the new React Apps Toolkit, we provide multiple new React hooks that abstract the most common use cases. That way, you have to write less boilerplate code and can focus on the core functionality of your Contentful app. Combined with Contentful’s open source Forma 36 design library it allows developers to seamlessly integrate into Contentful so that you can build editorial apps faster with less manual work. To learn more about the new React Apps Toolkit, check out the package on npm.
Usage:
ReactDOM.render(
// wrap the app with the SDK Provider, so the new hooks can be used
<SDKProvider>
<App />
</SDKProvider>,
document.getElementById(‘root’)
);
function App() {
// returns an instance of the App SDK
const sdk = useSDK();
// returns an initialized plain CMA client
const cma = useCMA();
// returns the current state of a field and an update method
const [value, setValue] = useFieldValue();
// …
}