Often the best way to learn something, is to learn from examples. While we do not provide much examples yet, we highly appreciate any help to provide some useful examples.
A simple example application using the React bindings.
git clone https://github.com/robinweser/fela.git
cd fela/examples/example-react
npm install
# starts the universal rendered application at localhost:8080
npm start
# starts the client-side application at localhost:8080
npm run client- Rules
- Keyframes
- Fonts
- Static Styles
- React Bindings
- Dynamic Rules
- Plugins
- Server-side Rendering
Another example that covers the usage with react-styleguidist.
git clone https://github.com/robinweser/fela.git
cd fela/examples/example-with-styleguidist
npm install
npm run styleguideA simple example application using the Preact bindings. The example is the same as the React example above.
git clone https://github.com/robinweser/fela.git
cd fela/examples/example-preact
npm install
# starts the universal rendered application at localhost:8080
npm start
# starts the client-side application at localhost:8080
npm run clientA simple example application using the Inferno bindings. The example is the same as the React example above.
git clone https://github.com/robinweser/fela.git
cd fela/examples/example-inferno
npm install
# starts the universal rendered application at localhost:8080
npm start
# starts the client-side application at localhost:8080
npm run clientA simple example application using the React bindings and the React Native renderer.
git clone https://github.com/robinweser/fela.git
cd fela/examples/example-react-native
npm install
npm startAfterwards open one of the platform specific native projects and run with a simulator.
- React Native
- Rules
- React Bindings
- Dynamic Rules
- Plugins
The code examples are based on the build-chain as used in Angular 2 ESNext TodoMVC.
git clone https://github.com/robinweser/fela.git
cd fela/examples/example-angular2
npm install
npm run start- Rules
- Angular Service
- Dynamic Rules
The same example is also available in TypeScript. It also covers Fela typings.
git clone https://github.com/robinweser/fela.git
cd fela/examples/example-angular2-typescript
npm install
npm run start